#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;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long k;
  cin >> k;
  vector<long long> ans(136);
  for (long long i = 0; i < (long long)(136); i++) {
    long long num = 0;
    num = pow(10, i / 9) - 1 + (i - i / 9 * 9) * pow(10, i / 9);
    ans[i] = num;
  }
  long long mina = 1e9;
  for (long long i = 135; i >= 1; i--) {
    if (mina <= ans[i]) ans[i] = 0;
  }
  int cnt = 0;
  for (long long i = 0; i < (long long)(136); i++) {
    if (ans[i] > 0) {
      cout << ans[i] << endl;
      cnt++;
    }
    if (cnt == k) return 0;
  }
  return 0;
}
