Alice has a set of unpleasant pairs of digits.
Consider a number bad if it satisfies the following conditions:
Otherwise, the number is considered good.
Your task is to determine ascending good numbers.
Input format
Output format
Print lines. The line must contain an answer for the test case.
Note: If answer is more than , print -1.
Constraints
The first 25 numbers that are good for the first test -> (1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,24,25,26,27)