#include <bits/stdc++.h>
using namespace std;
const long mod = 998244353;
const int siz = 1e5;
const long inf = 1e9;
int digit(long a) {
  int res = 0;
  while (a > 0) {
    res += a % 10;
    a /= 10;
  }
  return res;
}
int main() {
  int K;
  cin >> K;
  long a = 1, b = 0;
  set<long> st;
  for (int i = 0; i < 15; i++) {
    long t = b;
    int j = 0;
    while (t <= a * digit(t)) {
      if (j % 10 != 9) st.insert(t);
      t += a;
      j++;
    }
    a *= 10;
    (b *= 10) += 9;
  }
  int cnt = 0;
  st.erase(0);
  for (long v : st) {
    cout << v << endl;
    if (++cnt == K) break;
  }
}
