while True: try: l=input().split(' ') for i in range(len(l)): l[i]=l[i][::-1] print(' '.join(l)) except: break
Double click to view unformatted code.