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