Given two positive integers L & R and a digit D, print out all the good numbers in the range [L , R], which do not contain the digit D. A number is a good number if its every digit is larger than the sum of digits which are on the right side of that digit.
9620 is good as (2 > 0, 6 > 2+0, 9 > 6+2+0)
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. The first line of each test case contains an integer D.The second line of each test case contains two space separated integers L & R , denoting range [L , R].
Print out all the good numbers in range the [L , R] which do not contain the digit D .If no such numbers exist, then print -1.
1 <= T <= 100
0 <= D <= 9
0 <= L <=R<=2*10^4