n = int(input()) for i in range(n): k = int(input()) print(9*10**(k-1))