N, *d = map(int, open(0).read().split()) for x in d: if x == 1: print(10) else: print(9 * 10 ** (x - 1))