strlist = input() # 读取的是字符串

for i in range(len(strlist) - 1, -1, -1): # 从后往前遍历
    print(strlist[i], end='')