#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long INF = 1e18 + 1;
long long S(long long n) {
  long long res = 0;
  while (n > 0) {
    res += n % 10;
    n /= 10;
  }
  return res;
}
long long si(long long k) {
  long long res = 1;
  for (long long i = 0; i < k - 1; i++) {
    res = res * 10 + 9;
  }
  return res;
}
int main() {
  long long K;
  cin >> K;
  long long cnt = 0;
  long long i = 1;
  long long k = 1;
  long long bunbo = 1;
  long long bunsi = 1;
  while (true) {
    if (i * bunbo <= bunsi * S(i)) {
      cout << i << endl;
      cnt++;
    }
    if (cnt == K) break;
    i++;
    if (S(i) == 1) {
      k++;
      bunbo = 1 + 9 * (k - 1);
      bunsi = si(k);
    }
  }
}
