Problem Statment
Given a String S, reverse the string without reversing its individual words. Words are separated by dots.
Input
The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows.
First Line of each test case contains a string whose words are seperated by dots.
Output
Reversed string without reversing the words
Example 1:Input:
2
i.like.this.program.very.much
pqr.mno
Output:
much.very.program.this.like.i
mno.pqr