import sys

str=input()
a=str[::-1]
print(a)