N = int(input()) for _ in range(N): print('9' + '0' * (int(input()) - 1))