x=input() while x[0]==' ': x = x[1:len(x)] while x[-1]==' ': x=x[0:len(x)-1] print(x[::-1])
print(''.join(input()[::-1]))or
strr = input() for i in strr[::-1]: print(i,end='')
# 正常方法 while True: try: lis = list(input()) i = 0 j = len(lis) - 1 while i < j: lis[i], lis[j] = lis[j], lis[i] i += 1 j -= 1 print("".join(lis)) except: break # 取巧 print(input()[::-1])
#这么写麻烦了,直接print(input()[::-1])就行 while True: try: s = input() s_reverse = s[::-1] print(s_reverse) except: break