n = int(input()) for i in range(1, n+1): x = int(input()) if x == 1: print("10") else: print("9" + "0" * (x - 1))