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