import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { int d = sc.nextInt(); if (d == 1) { sb.append(10); } else { sb.append(9); for (int j = 1; j < d; j++) { sb.append(0); } } sb.append("\n"); } System.out.print(sb); } }