#include <bits/stdc++.h>
using namespace std;
int ctoi(const char c) {
  if ('0' <= c && c <= '9') return (c - '0');
  return -1;
}
int sum_digits(long long n) {
  int ret = 0;
  int digit = log10(n) + 1;
  for (int i = 0; i < digit; i++) {
    ret += ctoi(to_string(n).at(i));
  }
  return ret;
}
bool check_snuke(long long n, double* snuke) {
  long long limit = 1000000LL;
  bool ret = true;
  for (int i = n + 1; i <= limit; i++) {
    if (snuke[n] > snuke[i]) {
      ret = false;
      break;
    }
  }
  return ret;
}
int main() {
  int K;
  cin >> K;
  int ret[K];
  int j = 0;
  long long n = 1LL;
  long long limit = 1000000LL;
  double snuke[limit + 1];
  snuke[0] = 0;
  for (long long i = 1LL; i <= limit; i++) {
    snuke[i] = (double)i / (double)sum_digits(i);
  }
  while (j != K) {
    if (check_snuke(n, snuke)) {
      ret[j] = n;
      j++;
    }
    n++;
  }
  for (int i = 0; i < K; i++) {
    cout << ret[i] << endl;
  }
  return 0;
}
