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