#include using namespace std; int main() { int Q; cin >> Q; while (Q--) { int N; cin >> N; if (N - 1) cout << 9 << string(N-1, '0') << endl; else cout << 10 << endl; } }