num = input()
# 使用切片反转字符串,step =-1
print(num[::-1])