#include <bits/stdc++.h>
using namespace std;
long long k;
int main() {
  cin >> k;
  long long cnt = 0;
  long long i = 1;
  while (cnt < k) {
    int n = i;
    int m = i + 1;
    int sumn = 0, summ = 0;
    while (n > 0) {
      sumn += (n % 10);
      n /= 10;
    }
    while (m > 0) {
      summ += (m % 10);
      m /= 10;
    }
    if (((double)i / sumn) <= ((double)(i + 1) / summ)) {
      cout << i << endl;
      cnt++;
    }
    i++;
  }
  return 0;
}
