How non-pallindromic are you?

0

0 votes
Easy-Medium
Problem

You have to print Nth non-pallindromic number.
Input:
First line of input is T representing number of test cases
Each of the following T lines represent N.
Output:
Print Nth non-pallindromic number.
Constraints:
1 <= T <= 105
1 <= N <= 109

Sample Input
10
1
5
6
8
10
13
15
16
18
20
Sample Output
10
15
16
18
20
24
26
27
29
31
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?