#include <bits/stdc++.h>
using namespace std;
template <typename T>
void out(T x) {
  cout << x << endl;
  exit(0);
}
const int maxn = 1e6 + 5;
long long s(long long x) {
  long long res = 0;
  while (x) {
    res += x % 10;
    x /= 10;
  }
  return res;
}
bool f(long long x) { return x / s(x) <= (x + 1) / s(x + 1); }
int k;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> k;
  for (long long i = 1; k > 0; i++) {
    if (f(i)) {
      cout << i << endl;
      k--;
    }
  }
  return 0;
}
