#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  int CASH = 1, COMP = 0, MAXS = 1;
  int DIG = 0;
  int LOOPCOUNTER = 1;
  int KCOUNTER = 1;
  while (KCOUNTER <= K) {
    int SCASH = 0;
    for (int i = LOOPCOUNTER; i > 0; i = i / 10) {
      DIG = i % 10;
      SCASH = SCASH + DIG;
    }
    COMP = LOOPCOUNTER / SCASH;
    if (COMP <= CASH) {
      CASH = COMP;
      cout << LOOPCOUNTER << endl;
      KCOUNTER++;
    }
    LOOPCOUNTER++;
  }
  return 0;
}
