for _ in range(int(input())): n = int(input()) if n == 1: print(10) else: print('9' + '0' * (n - 1))