Given a String of length N reverse the whole string without reversing the individual words in it. Words are separated by dots.
The first line contains T denoting the number of testcases. Then follows description of testcases. Each case contains a string containing spaces and characters.
For each test case, output a single line containing the reversed String.
1<=Lenght of String<=2000