#include <bits/stdc++.h>
#define rep(i, ss, ee) for (int i = ss; i < ee; ++i)
using namespace std;

void solve() {
  int N;
  string s;
  cin >> N;
  rep(i, 0, N) { s += string(N, '0' + (9 - i)); }
  cout << s << endl;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
  getchar();
}