#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  int cnt = 1;
  while (cnt <= K && cnt < 10) {
    cout << cnt << endl;
    ++cnt;
  }
  int val = 9;
  int x = 10;
  int buf, sum1, sum2;
  while (cnt <= K) {
    val += x;
    cout << val << endl;
    buf = val + x;
    sum1 = 0;
    while (buf > 0) {
      sum1 += buf % 10;
      buf /= 10;
    }
    buf = val + x * 10;
    sum2 = 0;
    while (buf > 0) {
      sum2 += buf % 10;
      buf /= 10;
    }
    if ((val + x * 10) * sum1 <= (val + x) * sum2) {
      x *= 10;
    }
    ++cnt;
  }
  return 0;
}
