#include <bits/stdc++.h>
double digsum(int n) {
  int array[16], i;
  double sum = 0;
  for (i = 29; i >= 0; i--) {
    array[i] = n / (int)pow(10, i);
    n = n % (int)pow(10, i);
    sum += (double)array[i];
  }
  return sum;
}
int main() {
  int K;
  int i;
  int *array;
  scanf("%d", &K);
  array = (int *)malloc(sizeof(int) * K);
  for (i = 0; i < K; i++) {
    if (i < 9)
      array[i] = i + 1;
    else
      array[i] = 19 + 10 * (i - 9);
  }
  for (i = 0; i < K; i++) printf("%d", array[i]);
  return 0;
}
