A palindromic number is a number that remains the same when its digits are reversed. Your task is to get the kth palindrome number greater than or equal to X.
Input format
Output format
Print T lines, each line contains the answer for the ith case.
Constraints
1≤X, K≤109
The first 32 palindrome numbers are:1,2,3,4,5,6,7,8,9,11,22,33,44,55,66,77,88,99,101,111,121,131,141,151,161,171,181,191,202,212,222,232.