#include using namespace std; int main() { // your code goes here int t; cin >> t; while (t--) { int n; cin >> n; cout << 9; n--; for (int i = 1; i <= n;i++) cout << 0; cout << endl; //cout << endl; } return 0; }