#include #include using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { int d; cin >> d; if (d == 1) { cout << 10 << endl; } else { string s = "9"; for (int j = 0; j < d - 1; j++) s += '0'; cout << s << endl; } } return 0; }