Problem: The subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements.
You are given an integer .
You have to find a sequence consisting of digits such that it has exactly subsequences equal to .
For example, sequence has subsequences equal to :
- (you can remove the second and fifth characters);
- (you can remove the third and fifth characters);
- (you can remove the fourth and fifth characters);
- (you can remove the second and sixth characters);
- (you can remove the third and sixth characters);
- (you can remove the fourth and sixth characters).
Note that the length of the sequence must not exceed .
You have to answer independent queries.
Input Format: The first line contains one integer () — the number of queries.
Next lines contains a description of queries: the -th line contains one integer ().
Output Format: For the -th query print one string () consisting of digits . String must have exactly subsequences . If there are multiple such strings, print any of them.