using System;
public class Program
{
static string betoch (string a , string b){
char [] x = a.ToCharArray();
char [] y = b.ToCharArray();
if ( x.Length< y.Length){
return a;
}
return b;
public static void Main()
string a = Console.ReadLine();
string b = Console.ReadLine();
Console.WriteLine(betoch(a,b));