n = int(input()) ds = [None] * n for i in range(n): ds[i] = (int(input())) for d in ds: if d == 1: print("10") else: print('9' + '0' * (d - 1))