#include <bits/stdc++.h>
using namespace std;
long long Pow(int a, int b) {
  long ans = 1;
  for (; b; b >>= 1) {
    if (b & 1) {
      ans = (long long)ans * a;
      a = (long long)a * a;
    }
  }
  return ans;
}
int main() {
  long long k;
  scanf("%lld", &k);
  for (int i = 0; k > 0; i++) {
    for (int j = 1; j <= 9 && k > 0; j++) {
      k--;
      if (j * Pow(10, i) - 1 == 0) {
        k++;
        continue;
      }
      printf("%lld\n", j * Pow(10, i) - 1);
    }
  }
  return 0;
}
