#include <bits/stdc++.h>
long long K;
long long out;
long long now_unit;
int main() {
  now_unit = 1;
  out = 0;
  scanf("%lld", &K);
  for (long long k = 0; k < K; k++) {
    out += now_unit;
    if (out == 10) {
      out = 19;
      now_unit = 10;
    }
    if (out == 109) {
      out = 199;
      now_unit = 100;
    }
    if (out == 1009) {
      out = 1999;
      now_unit = 1000;
    }
    if (out == 10009) {
      out = 19999;
      now_unit = 10000;
    }
    if (out == 100009) {
      out = 199999;
      now_unit = 100000;
    }
    if (out == 1000009) {
      out = 1999999;
      now_unit = 1000000;
    }
    if (out == 10000009) {
      out = 19999999;
      now_unit = 10000000;
    }
    if (out == 100000009) {
      out = 199999999;
      now_unit = 100000000;
    }
    if (out == 1000000009) {
      out = 1999999999;
      now_unit = 1000000000;
    }
    if (out == 10000000009) {
      out = 19999999999;
      now_unit = 10000000000;
    }
    if (out == 100000000009) {
      out = 199999999999;
      now_unit = 100000000000;
    }
    if (out == 1000000000009) {
      out = 1999999999999;
      now_unit = 1000000000000;
    }
    if (out == 10000000000009) {
      out = 19999999999999;
      now_unit = 10000000000000;
    }
    if (out == 100000000000009) {
      out = 199999999999999;
      now_unit = 100000000000000;
    }
    if (out == 1000000000000009) {
      out = 1999999999999999;
      now_unit = 1000000000000000;
    }
    printf("%lld\n", out);
  }
}
