N = int(input()) for i in range(N): a = int(input()) if a>1: print(9*10**(a-1)) else: print(10)