# your code goes here P1, P2 = input().split() print(P2, P1)