a = [] a = raw_input().split() print(a[1]) print(a[0])