#pragma GCC optimize("Ofast")
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
//#define int long long
template<typename T> inline bool chmax(T& a,T b) { if (a < b) { a = b; return true; } return false; }
template<typename T> inline bool chmin(T& a,T b) { if (a > b) { a = b; return true; } return false; }

int main() {
    int N;
    cin >> N;
    if (N == 1) { cout << 1 << endl; return 0; }
    for (int i = N-1; i >= 0; i--) {
        for (int j = 0; j < N; j++) {
            cout << i;
        }
    }
    cout << endl;
    return 0;
}