#include <bits/stdc++.h>
using namespace std;
int dig(int n) {
  int s = 0;
  while (n > 0) {
    s += n % 10;
    n /= 10;
  }
  return s;
}
int main() {
  int k;
  cin >> k;
  if (k < 10) {
    for (int i = 1; i < k + 1; i++) {
      cout << i << endl;
    }
  } else {
    for (int i = 1; i < 10; i++) {
      cout << i << endl;
    }
    int c = 1;
    for (int j = 1; j <= k - 9; j++) {
      if (c >= (10 * j + 9) / dig(10 * j + 9)) {
        c = 10 * j + 9;
        cout << c << endl;
      }
    }
  }
  return 0;
}
