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