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