A beautiful platform awaits,
Solve this problem to open the gates,
Look carefully as it is your first,
And you'll find it's just written in reverse.
INPUT
The first line of input contains T, number of test cases. Each line of the test case contains a string S.
OUTPUT
For each test case print the string in reverse order in separate line.
CONSTRAINTS
1≤T≤10
1≤Length of S≤100
Note
All the strings are given in capital letters.