s = input()[::-1]#输入字符串直接进行倒序切片

for i in s:#遍历字符串,不换行输出
    print(i,end='')