Problem of Precision

Time Limit: 1000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 2256
64-bit integer IO format: %I64d      Java class name: Main

Description


Input

The first line of input gives the number of cases, T. T test cases follow, each on a separate line. Each test case contains one positive integer n. (1 <= n <= 10^9)

Output

For each input case, you should output the answer in one line.

Sample Input

3
1
2
5

Sample Output

9
97
841

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .