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