s = input()
pos = s.find(" ")
print(s[pos + 1:], s[:pos + 1])

b62dd5e3f80963c5f1f2fa81e775ee498a862c25
<mask token>

<mask token>
print(s[pos + 1:], s[:pos + 1])

s = input()
pos = s.find(' ')
print(s[pos + 1:], s[:pos + 1])

s = input()
pos = s.find(" ")
print(s[pos + 1:], s[:pos + 1])
