#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
template <class... A>
inline void dump() {
  cout << endl;
}
template <class... A>
inline void dump_rest() {
  cout << endl;
}
template <class T, class... A>
inline void dump_rest(const T& first, const A&... rest) {
  cout << endl << first;
  dump_rest(rest...);
}
template <class T, class... A>
inline void dump(const T& first, const A&... rest) {
  cout << first;
  dump_rest(rest...);
}
template <class... A>
inline void debug() {
  cout << endl;
}
template <class... A>
inline void debug_rest() {
  cout << endl;
}
template <class T, class... A>
inline void debug_rest(const T& first, const A&... rest) {
  cout << ',' << first;
  debug_rest(rest...);
}
template <class T, class... A>
inline void debug(const T& first, const A&... rest) {
  if (1) cout << first, debug_rest(rest...);
}
unsigned long long a, b, c, d, ans, mem = 1, memi = 1, cnt, K;
string s, t, u;
int ds(int masu) {
  int unit = 0;
  while (masu != 0.0) {
    unit += masu % 10;
    masu /= 10;
  }
  return unit;
}
int main() {
  cin >> K;
  if (K < 10) {
    for (int i = 1; i <= K; i++) {
      dump(i);
    }
  } else {
    for (int i = 1; i <= 9; i++) {
      dump(i);
    }
    dump(19);
  }
}
