using System; using System.Text; namespace yukiCoder { class MainClass { public static void Main(string[] args) { var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); int N = int.Parse(Console.ReadLine()); int[] dN = new int[N]; for (int i = 0; i < N; i++) { dN[i] = int.Parse(Console.ReadLine()); } for (int j = 0; j < N; j++) { if (dN[j] == 1) { Console.WriteLine("10"); } else { StringBuilder result = new StringBuilder(); result.Append("9"); for (int k = 1; k < dN[j]; k++) { result.Append("0"); } Console.WriteLine(result); } } Console.Out.Flush(); } } }