#include using namespace std; using ll = long long; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; for (int i = 0; i < n; i++) { int d; cin >> d; cout << (d == 1 ? "10" : "9" + string(d - 1, '0')) << newl; } return 0; }