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