#include <bits/stdc++.h>
using namespace std;
long long a[10005];
double fun(long long i) {
  long long ii = i;
  long long ans = 0;
  while (i) {
    ans += i % 10;
    i /= 10;
  }
  return double(ii) / ans;
}
void init() {
  for (int i = 0; i <= 17; i++) a[i] = i + 1;
  int k = 18;
  for (int i = 1; i <= 250; i++) {
    a[k] = a[k - 18] * 10 + 9;
    k++;
  }
}
int main() {
  ios::sync_with_stdio(false);
  init();
  int n;
  cin >> n;
  int cnt = 0;
  for (int i = 0;; i++) {
    if (fun(a[i]) <= fun(a[i + 1]) && fun(a[i]) <= fun(a[i + 9]))
      cout << a[i] << endl, cnt++;
    if (cnt == n) break;
  }
}
