#include using namespace std; using pii = pair; using ll = long long; #define rep(i, j, n) for(int i = j; i < (int)(n); i++) const ll MOD = 1000000007; const ll INFL = (1LL << 60); const int INFI = (1 << 30); int main() { int N; cin >> N; if (N == 1) cout << 1 << endl; else { for (int i = N - 1; i >= 0; i--) { for (int j = 0; j < N; j++) { cout << i; } } cout << endl; } }