import sys

s = input()

s = reversed(s)

print(''.join(s))