#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool rd(T &num) {
  char in;
  bool IsN = false;
  while (in = getchar(), in != '-' && (in < '0' || in > '9'))
    if (in == EOF) return false;
  in == '-' ? (IsN = true, num = 0) : num = in - '0';
  while (in = getchar(), in >= '0' && in <= '9') num = num * 10 + in - '0';
  return IsN ? num = -num : num, true;
}
string nico;
const int maxn = 1e5 + 7;
const int inf = 0x3f3f3f3f;
const long long linf = (long long)inf << 32 | inf;
const int mod = 1e9 + 7;
char num[maxn];
long long mnum[maxn];
void init() {
  mnum[0] = 1;
  mnum[1] = 19;
  mnum[2] = 199;
  long long now = 109;
  for (int i = 3; i < 17; i++) {
    now = now * 10 + 9;
    mnum[i] = now;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long now = 1;
  int k;
  cin >> k;
  init();
  int ans = 0, pos = 0;
  double a, b = 1;
  while (ans < k) {
    if (now >= mnum[pos]) {
      pos++;
      int ss = 0;
      sprintf(num, "%lld", mnum[pos]);
      for (register int i = (0); i < (strlen(num)); i++) ss += num[i] - '0';
      b = 1.0 * mnum[pos] / ss;
    }
    sprintf(num, "%lld", now);
    int s = 0;
    for (register int i = (0); i < (strlen(num)); i++) s += num[i] - '0';
    a = 1.0 * now / s;
    if (a <= b) {
      cout << now << endl;
      now++;
      ans++;
    } else {
      now = mnum[pos];
    }
  }
  return 0;
}
