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