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