s,s1=map(int,input().split())
s,s1=s1,s
print(s,s1) #output

938c09244236818858744a3028c0244af8c3a816
<mask token>

<mask token>
print(s, s1)

s, s1 = map(int, input().split())
s, s1 = s1, s
print(s, s1)

s,s1=map(int,input().split())
s,s1=s1,s
print(s,s1) #output
