a, b = input().split() if a == b: print(a, b) else: print(b, a)