#include <bits/stdc++.h>
using namespace std;
const long long INF = 1001001001001001001ll;
const long long LINF = 1001001001001001001ll;
const long long MOD = 1000000007;
const double EPS = 1e-9;
template <typename T>
ostream& operator<<(ostream& s, const vector<T>& v) {
  long long len = v.size();
  for (long long i = 0; i < len; ++i) {
    s << v[i];
    if (i < len - 1) s << ' ';
  }
  return s;
}
template <typename T>
ostream& operator<<(ostream& s, const vector<vector<T>>& vv) {
  long long len = vv.size();
  for (long long i = 0; i < len; ++i) {
    s << vv[i];
    if (i != len - 1) s << '\n';
  }
  return s;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
__attribute__((constructor)) void initial() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(15);
}
long long S(long long i) {
  long long ans = 0;
  while (i) {
    ans += i % 10;
    i /= 10;
  }
  return ans;
}
double g(long long i) { return (double)i / S(i); }
signed main() {
  long long K;
  cin >> K;
  vector<long long> cnt = {8, 9, 19};
  for (long long _ = 0; _ < (14); ++_) {
    cnt.push_back(cnt[((long long)(cnt).size()) - 1] + 9);
  }
  long long i = 1;
  long long d = 1;
  long long N = ((long long)(cnt).size());
  for (long long j = 0; j < (N); ++j) {
    while (cnt[j]) {
      cout << i << endl;
      K--;
      if (K == 0) return 0;
      i += d;
      cnt[j]--;
    }
    d *= 10;
  }
}
