Problem: In Japan, the number reads like death, so Bob decided to build a live sequence. Living sequence contains all natural numbers that do not contain the digit . .
For example, the number is part of the sequence , but the numbers , are not part of the sequence .
Bob realized that he does not know how to quickly search for a particular number by the position in the sequence, so he asks for your help.
For example, if Bob wants to find the number at position (indexing from ), you need to answer .
Input Format: The first line of input data contains a single integer () — the number of test cases.
In the only line of each test case, there is a single integer () — the position Bob is interested in.
Output Format: For each test case, print on a separate line the number in indexing with .