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