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