n=int(input()) l=[] for i in range(n): t=int(input()) if t==1: l.append(10) else: l.append(9*(10**(t-1))) for x in l: print(x)