#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long long mod2 = 998244353;
const long long INF = 1e18;
const long double EPS = 1e-10;
long long getsn(int n) {
  int sn = 0;
  while (n > 0) {
    sn += n % 10;
    n /= 10;
  }
  return sn;
}
int main() {
  long long k;
  cin >> k;
  long long ans = 1;
  for (int i = 0, d = 1; i < k; i++) {
    cout << ans << endl;
    while ((ans + d - 1) / getsn(ans + d) >= d) {
      d *= 10;
    }
    ans += d;
  }
  return 0;
}
