#include <bits/stdc++.h> using namespace std; using ll = long long; using Graph = vector<vector<int>>; int main() { ll N; cin >> N; for(int i = 0; i < N; i++) { int a; cin >> a; string ans = "9"; for(int i = 0; i < a - 1; i++) { ans += '0'; } cout << ans << endl; } }