SP279 INUMBER - Interesting number

Description

For the given number _n_ find the minimal positive integer divisable by _n_, with the sum of digits equal to _n_.

Input Format

_t_ – the number of test cases, then _t_ test cases follow. (t

Output Format

For each test case output the required number (without leading zeros).