#include <bits/stdc++.h>
using namespace std;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int k;
  vector<long long int> res;
  vector<pair<long long int, long double>> v;
  cin >> k;
  long long int base = 0;
  long long int l = 1;
  while (1) {
    if (l + base >= 1e15) {
      break;
    }
    for (long long int j = 1; j < 100; j++) {
      long long int temp = l * j + base;
      if (temp >= 1e15) {
        break;
      }
      long long int sum = 0;
      while (temp > 0) {
        sum += (temp % 10);
        temp /= 10;
      }
      temp = l * j + base;
      long double val = (temp * 1.0) / sum;
      v.push_back(make_pair(temp, val));
    }
    l *= 10;
    base = 10 * base + 9;
  }
  for (int i = 0; i < v.size(); i++) {
    bool ok = true;
    for (int j = i + 1; j < v.size(); j++) {
      if (v[i].second > v[j].second) {
        ok = false;
        break;
      }
    }
    if (ok) {
      res.push_back(v[i].first);
      if (res.size() == k) {
        break;
      }
    }
  }
  for (int i = 0; i < res.size(); i++) {
    cout << res[i] << '\n';
  }
  return 0;
}
