#include <iostream>
#include <string>

using namespace std;

int fS(int i) {
  int ans = 0;
  while (i > 0) {
    ans += i % 10;
    i /= 10;
  }
  return ans;
}

int main() {
  int K;
  cin >> K;
  for (int i = 1; i < K; i++) cout << i << endl;
  if (K < 10) {
    return 0;
  }
  K -= 9;
  int counter = 0;
  for (;;) {
    int Sn = fS(i);
    if (i % 10 == 9) {
      int j = i;
      int Sj = 0;
      while (true) {
        Sj = fS(j);
        if (Sj > Sn)
          break;
        j++;
      }
      double ratio1 = (float)i / (float)Sn;
      double ratio2 = (float)j / (float)Sj;
      if (ratio1 < ratio2) {
        counter++;
        cout << i << endl;
      }
    }
    if (counter >= K) {
      break;
    }
  }
  return 0;
}
