#include using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); int t; cin >> t; while (t--) { int n; cin >> n; if (n >= 10) { rep(i, n) { cout << (i + 1) % 10; } } else { rep(i, n) cout << i % 10; } cout << endl; } return 0; }