a = input()
assert(len(a)<=1000)#检查字符串长度不大于1000
assert(a.isalpha())#检查字符串都是字母组成
assert(a.islower())#检查字符串是小写字母
print(a[::-1])