#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <cmath>
#include <climits>
#include <cstdlib>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define DEBUG 1
using namespace std;
constexpr int kMod = 1000000007;
typedef long long LL;

LL S(LL n) {
  LL ans = 0;
  while (n > 0) {
    ans += n % 10;
    n /= 10;
  }
  return ans;
}

int main() {
  LL K; cin >> K;
  set<LL> s;

  LL base = 1;
  for (LL i = 0; i < 15; ++i) {
    for (LL j = 1; j < 1000; ++j) {
      s.insert(base * (j + 1LL) - 1LL);
    }
    base *= 10LL;
  }

  vector<LL> v;
  double vmin = DBL_MAX;
  for (auto it = s.rbegin(); it != s.rend(); ++it) {
    LL x = *it;
    double y = (double)x / S(x);
    if (y <= vmin) {
      vmin = y;
      v.push_back((LL)x);
    }
  }

  reverse(v.begin(), v.end());
  for (int i = 0; i < K; ++i) cout << v[i] << endl;
}
