def main(): A, B = input().split() print(B, A) main()