apple banana
banana
a = input().strip() b = input().strip() if len(a) >= len(b): print(a) else: print(b)