#include <bits/stdc++.h>
using namespace std;
int S(int N) {
  int S = 0;
  while (N > 0) {
    S = S + N - N / 10 * 10;
    N = N / 10;
  }
  return S;
}
bool Snuke(int i) {
  int c = 0;
  for (int j = i + 1; j < 100 * i; ++j) {
    if (i / S(i) <= j / S(j)) c++;
  }
  return (c == 99 * i - 1);
}
int main() {
  int K;
  vector<int> A;
  int a = 0;
  cin >> K;
  for (int i = 1; i < 100 * K; ++i) {
    if (Snuke(i)) {
      A.at(a) = i;
      a++;
    }
  }
  for (int j = 0; j < K; j++) {
    cout << A.at(j) << endl;
  }
}
