#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll K;
ll calcSum(ll n) {
  ll sum = 0;
  while (n > 0) {
    sum += n % 10;
    n /= 10;
  }
  return sum;
}
int main() {
  cin >> K;
  for (int i = 1; i < 10 && K > 0; i++, K--) cout << i << endl;
  if (K > 0) {
    for (ll i = 0, c = 19; i < K; c += 9) {
      ll top = c;
      while (top / calcSum(top) == (c - 1) / calcSum(c - 1)) {
        c--;
      }
      while (c <= top && i < K) {
        cout << c++ << endl;
        i++;
      }
    }
  }
}
