num1_list = list(map(int,input()))
num1_list.reverse()
for i in num1_list:
    print(i,end='')