#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(n);i++)
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
const ll INF=1e18;
const int MOD=1e9+7;
const double pi=acos(-1);

int main(){
  int n;
  cin >> n;
  string t="";
  if(n==1){
    cout << 1 << endl;
    return 0;
  }
  for(int i=n;i>0;i--){
    rep(j,n){
      t+=to_string(i-1);
    }
  }
  cout << t << endl;
}