#include <bits/stdc++.h>
int main() {
  int n = 0, k, j = 10;
  std::cin >> k;
  for (int i = 1; i <= 9; i++) {
    std::cout << i;
  }
  for (int i = 0; i < k - 9; i++) {
    std::cout << 9 + j;
    j = j + 10;
  }
  std::cout << std::endl;
  return 0;
}
