#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  int count = 0;
  int n, sn, nn;
  double sunuke, sunuke1, sunukec;
  for (int i = 0; count < k; i++) {
    n = 10 * i + 9;
    sn = 0;
    nn = n;
    while (nn > 0) {
      sn += nn % 10;
      nn = nn / 10;
    }
    sunuke1 = (double)n / sn;
    sunukec = (double)(n + 10) / (sn + 1);
    for (int j = 0; (count < k) && (j < 10); j++) {
      if (sn != j)
        sunuke = (double)(n - j) / (sn - j);
      else
        sunuke = sunuke1 + 1.0;
      if (sunuke > sunuke1) {
        for (int jj = j; jj > 0; jj--) {
          cout << n - jj + 1 << endl;
          count++;
          if (count == k) break;
        }
      }
    }
  }
}
