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