a = int(input())
b = int(input())

print(a if a>b else b)

if a>b:
    print(a)
else:
    print(b)
