#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  long long a = 1;
  while (K != 0) {
    long long b = a + 1;
    long long adig = 0, atem = a;
    while (atem > 0) {
      adig += atem % 10;
      atem /= 10;
    }
    long long bdig = 0, btem = b;
    while (btem > 0) {
      bdig += btem % 10;
      btem /= 10;
    }
    if ((double)(a) / (double)(adig)-0.0000000001 <=
        (double)(b) / (double)(bdig)) {
      cout << a << endl;
      K--;
    }
    a = b;
  }
}
