#include<bits/stdc++.h>

using namespace std;
using ll = long long;


int main()
{
    int n; cin >> n;
    string s;
    for(char i = '9'; i >= '0'; i--)s.push_back(i);
    for(int i = 0; i < n; i++) {
        cout << s.substr(0, n);
    }
    cout << endl;
}