#include using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; string ans = ""; for (int i = 9; i >= 10 - n; --i) { string hoge(n, '0' + i); ans += hoge; } cout << ans << endl; return 0; }