#include using namespace std; int main() { int n; cin >> n; while (n--) { int d; cin >> d; if (d == 1) cout << "10\n"; else cout << 9 << string(d-1, '0') << endl; } }