#include #include using namespace std; int main() { cin.tie(nullptr), ios::sync_with_stdio(false); int T; cin >> T; while (T--) { int N; cin >> N; if (N == 1) cout << "10\n"; else cout << '9' << string(N - 1, '0') << '\n'; } }