Razin loves strings so much that his parents decided to buy him n strings for his birthday. But in the night, his young sister accidentally reversed all the strings. Now please help him to restore the original string.
First line contains an integer, n.
Then each n lines contains a string.
1 ≤ n, size of a string ≤ 100
print n lines. Each line should contain the actual string of Razin.
Input | Output |
---|---|
2 i am boss madam | ssob ma i madam |