Nick only likes numbers with exactly
For a given integer
Constraints
Input Specification
The first line contains a single positive integer,
Each test case consists of a single line that contains two space-separated positive integers,
Output Specification
Output the answers for the
The answer for the
Sample Input
Copy
6
1 1
1 2
1 3
11 1
11 2
11 3
Sample Output
Copy
1
10
102
11
12
102
Comments