#include using namespace std; int main() { int n; cin >> n; while(n--) { int d; cin >> d; if(d == 1) { cout << 10 << '\n'; } else { string s = "9"; --d; while(d--) { s += "0"; } cout << s << '\n'; } } return 0; }