na = input()
b = na[::-1] # 间隔::数字 比如::-2 就是1234 1去掉显示2 3去掉显示4 24
print(b)