#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int digitSum(int x) {
  int sum = 0;
  while (x > 0) {
    sum += x % 10;
    x /= 10;
  }
  return sum;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int k;
  cin >> k;
  queue<ll> q;
  for (ll i = 1; i <= 9; i++) q.push(i);
  ll now = 9, diff = 10;
  while (q.size() < k) {
    now += diff;
    if ((double)now / digitSum(now) <=
        (double)((double)now + diff) / (double)digitSum(now + diff)) {
      q.push(now);
    } else {
      now -= diff;
      diff *= 10;
    }
  }
  for (int i = 0; i < k; i++) {
    cout << q.front() << '\n';
    q.pop();
  }
}
