#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// 条件を見落としていませんか?
int main () {
    int N;
    cin >> N;
    for (int i = 0; i < N; i++) {
        cout << string(N, '9'-i);
    }
    cout << endl;
}