#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; rep(i,n){ int d; cin >> d; if(d == 1){ cout << 10 << endl; continue; } string s = "9"; rep(j,d-1) s += '0'; cout << s << endl; } }