#include "bits/stdc++.h" using namespace std; int main() { int N; cin >> N; for (int i = 0; i < N; i++) { int d; cin >> d; if (d == 1) { cout << 10 << endl; } else { cout << 9; for (int j = 0; j < d - 1; j++) { cout << 0; } cout << endl; } } }