#include <bits/stdc++.h>
using namespace std;
constexpr int MOD = 1000000007;
template <class T = int>
T in() {
  T x;
  cin >> x;
  return (x);
}
template <class T = int>
void out(T x) {
  cout << (x) << '\n';
}
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
long long sum(long long a) {
  long long ans = 0;
  while (a) {
    ans += a % 10;
    a /= 10;
  }
  return ans;
}
void solve() {
  long long K;
  cin >> K;
  long long n = 1, x = 1;
  for (long long i = 0; i < K; i++) {
    cout << n << '\n';
    if ((n + x) / sum(n + x) > (n + x * 10) / sum(n + x * 10)) {
      x *= 10;
    }
    n += x;
  }
  return;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  solve();
  return 0;
}
