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