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