s = input()
d = s[::-1]		#反转字符串
print(d)

解题思路见代码注释!

太简单了这一题