#include <bits/stdc++.h>
using namespace std;
int getSum(int num) {
  int count = 1;
  int sum = 0;
  while (num / count > 0) {
    count *= 10;
  }
  count /= 10;
  while (num > 0) {
    int digit;
    digit = num / count;
    sum += digit;
    num -= digit * count;
    count /= 10;
  }
  return sum;
}
int main() {
  int K;
  cin >> K;
  vector<int> ans;
  float kss = K / getSum(K);
  int count = 0;
  int loop = 1;
  while (count < K) {
    if (loop < K) {
      if (float(loop / getSum(loop)) <= kss) {
        ans.push_back(loop);
        count++;
      }
    } else if (loop > K) {
      if (float(loop / getSum(loop)) >= kss) {
        ans.push_back(loop);
        count++;
      }
    }
    loop++;
  }
  for (auto i : ans) {
    cout << i << endl;
  }
  return 0;
}
