#再次感叹,人生苦短,我用Python!
#需要注意,字符串不能直接使用reverse方法倒转,因为reverse是列表的内置方法
a=input()
print(a[::-1])