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