# 方法1:reversed
# print(''.join(reversed(input())))

# 方法2:切片
print(input()[::-1])