题目描述
Problem description.
This problem deals with the I/O methods used in codechef. You are supposed to print the integer in its reverse form , or in simple words, print the reverse of the given integer . For instance , reverse of 120 is 21 (not 021) .
Input
The first line of each test case contains an integer T .
following T lines contains distinct integers N .
Output
Output should contain T line , each line with the distinct integer as asked in question .
Constraints
1 ≤ T ≤ 10^5
1 ≤ N ≤ 10^18
Example
Input:
3
1234
4567
1
Output:
4321
7654
1
Explanation
reverse of 1234 is 4321 , 4567 is 7654 & of 1 is 1
NOTE: testcases may contain large range of data, use datatypes accordingly .
输入格式
见题面
输出格式
见题面
样例输入
3
1234
4567
1
样例输出
4321
7654
1