#include <bits/stdc++.h>
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
using namespace std;
long long cal(long long num) {
  long long res = 0;
  while (num > 0) {
    res += num % 10;
    num /= 10;
  }
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  vector<long long> res;
  long long k;
  cin >> k;
  for (long long i = 0; i < (long long)(12); i++) {
    long long ten = pow(10, i);
    for (long long j = 0; j < (long long)(1000); j++)
      res.push_back(ten * j + ten - 1);
  }
  sort((res).begin(), (res).end());
  res.erase(unique((res).begin(), (res).end()), res.end());
  double mi = 1e15;
  for (long long i = res.size() - 1; i >= 0; i--) {
    if (mi >= (double)res[i] / cal(res[i]))
      mi = (double)res[i] / cal(res[i]);
    else
      res[i] = 0;
  }
  for (long long i = 0; i < (long long)(k); i++) {
    if (res[i] > 0)
      cout << res[i] << endl;
    else
      k++;
  }
  return 0;
}
