#include <bits/stdc++.h>
using namespace std;
long long ans[10005];
long long read() {
  char c = getchar();
  long long x = 0, f = 1;
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return x * f;
}
int main() {
  for (long long i = 1; i <= 8; i++) ans[i] = i + 1;
  long long cnt = 9;
  for (long long i = 1; i <= 15; i++) {
    for (long long j = max(1LL, i - 1); j <= (i - 1) * 10 + 9; j++) {
      ans[cnt] = j;
      for (long long k = 1; k <= i; k++) ans[cnt] = ans[cnt] * 10;
      ++cnt;
    }
  }
  long long k = read();
  for (long long i = 1; i <= k; i++) printf("%lld\n", ans[i] - 1);
  return 0;
}
