#include using namespace std; int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); int N; cin >> N; while(N--) { int d; cin >> d; if(d==1) { cout << 10 << endl; } else { string ans = string(d-1, '0'); ans.insert(ans.begin(), '9'); cout << ans << endl; } } }