# Arup Guha
# 11/9/2024
# Digit Swap Solution (Kattis)

s = input().strip()
print(s[1],s[0], sep="")
