s =input()
s = list(s)
for i in range(len(s)):
    print(s[-i-1], end='')