num_old=input()
num_new=""
for i in range(1,len(num_old)+1):
    num_new+=num_old[-i]
print(num_new)