#include <bits/stdc++.h>
using namespace std;
int main(void) {
  unsigned long long i = 1, K, cnt = 0;
  unsigned long long n = 0, m = 0, sumN = 0, sumM = 0;
  cin >> K;
  for (i = 1; cnt < K; i++) {
    n = i;
    while (n > 0) {
      sumN += n % 10;
      n /= 10;
    }
    m = i + 1;
    while (m > 0) {
      sumM += m % 10;
      m /= 10;
    }
    if (i * sumM <= (i + 1) * sumN) {
      cout << i << endl;
      cnt++;
    }
    sumN = 0;
    sumM = 0;
  }
  return 0;
}
