You are given N numbers. Your task is to compute the reverse number for each of them and to print those numbers in reverse order.
Input
The first line contains an integer N.
The following N lines contains the given numbers.
Output
The reversed numbers, in reverse order, each on a new line.
Restrictions
- 1 ≤ N ≤ 100
- 0 ≤ any number ≤ 231-1
Sample
Input | Output |
---|---|
3 128 255 100 | 1 552 821 |