#include <bits/stdc++.h>
using namespace std;
int main() {
  clock_t tStart = clock();
  long long k;
  scanf("%lld", &k);
  if (k <= 9) {
    for (long long i = 1; i <= k; i++) {
      printf("%lld\n", i);
    }
  } else {
    for (long long i = 1; i <= 9; i++) {
      printf("%lld\n", i);
    }
    for (long long i = 10; i <= k - 9; i++) {
      printf("%lld", i);
      printf("9\n");
    }
  }
  return 0;
}
