#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair int main() { int N; cin >> N; rep(i, N) { int d; cin >> d; if (d == 1) { cout << "10" << endl; continue; } cout << "9"; rep(i, d-1) { cout << "0"; } cout << endl; } }