#include <bits/stdc++.h>
using namespace std;
vector<pair<pair<int, int>, int> > v_ans;
vector<long int> v;
vector<int> v_hana;
bool cmp(pair<pair<int, int>, int> h, pair<pair<int, int>, int> r) {
  return h.second < r.second;
}
int main() {
  int k;
  long long int x = 1;
  cin >> k;
  int cnt = 0;
  int hanteiyou = 9, hante = 9;
  while (cnt < k) {
    if ((x + 1) % 10 == 0) {
      hanteiyou++;
      hante += 10;
    }
    string s;
    s = to_string(x);
    long int S = 0;
    for (int i = 0; i < (int)s.size(); i++) {
      S += s[i] - '0';
    }
    if ((float)x / S <= (float)hante / hanteiyou) {
      cout << x << endl;
      cnt++;
    }
    x++;
  }
  return 0;
}
