using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
string s = Console.ReadLine();
string s1 = Console.ReadLine();
string s2 = Console.ReadLine();
int[] answer = new int[((x5.Length * x5.Length)*2)];
for ( int i = 0; i < x5.Length;i++)
for ( int z = 0; z < x6.Length;z++)
answer[count] =Convert.ToInt32( x5[i].ToString() + x6[z].ToString());
Console.WriteLine(answer[count]);
for (int i = 0; i < x6.Length; i++)
for (int z = 0; z < x5.Length; z++)
answer[count] = Convert.ToInt32(x6[i].ToString() + x5[z].ToString());
Console.WriteLine(answer[count]);
Console.WriteLine(answer.Min());