test = int(input())
for i in range(test):
sentence = input().split(' ')
res = []
for x in sentence:
word = "".join(reversed(x))
res.append(word) #res.append(x[::-1])
print(' '.join(res))
No comments:
Post a Comment