#include "bits/stdc++.h" //#include //#include //#include //#include //#include using namespace std; using ll = long long; using ld = long double; using P = pair; #define rep(i, n) for(int i = 0; i < (n); i++) #define rep2(i, x, n) for(int i = x; i < (n); i++) #define all(n) begin(n), end(n) // struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; const long long INF = numeric_limits::max(); ll mod = 1000000007; void Main() { // int n; cin >> n; vector d(n); rep(i, n) cin >> d[i]; rep(i, n) { if(d[i] == 1){ cout << 10 << endl; continue; } cout << 9; rep(j, d[i] - 1) { cout << 0; } cout << endl; } } // int main() { std::cin.tie(nullptr); std::ios_base::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(15); Main(); return 0; }