// yukicoder No.964
#include <bits/stdc++.h>
using namespace std;

int main()
{
  int n; cin >> n;

  if(n==1) cout << 1 << "\n";
  else {
    for(int i = 0; i < n; ++i) {
      for(int j = 0; j < n; ++j) {
	    cout << n-i-1;
      }
    }
  }

  cout << "\n";

  return 0;
}