def main(): n = int(input()) for _ in range(n): d = int(input()) if d == 1: print(10) else: print(9 * 10 ** d) if __name__ == "__main__": main()