f, s = (i for i in input().split()) if f == s: print(f, s) else: f, s = s, f print(f, s)