#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const double EPS = 1e-9;
const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1},
          dy[] = {0, -1, 0, 1, 1, -1, -1, 1};
int S(long long a) {
  int sum = 0;
  while (a > 0) {
    sum += a % 10;
    a /= 10;
  }
  return sum;
}
int main() {
  int K;
  cin >> K;
  vector<long long> c;
  for (int i = 1; i <= 999; i++) {
    c.push_back(i);
  }
  string s = "99";
  for (int i = 2; i < 15; i++) {
    for (int j = 1; j <= 999; j++) {
      stringstream ss;
      ss << j << s;
      c.push_back(stoll(ss.str()));
    }
    s += "9";
  }
  sort(c.begin(), c.end());
  c.erase(unique(c.begin(), c.end()), c.end());
  for (int i = 0; i < c.size(); i++) {
    bool flag = true;
    for (int j = i + 1; j < c.size(); j++) {
      if (c[i] * S(c[j]) > c[j] * S(c[i])) {
        flag = false;
        break;
      }
    }
    if (flag) {
      cout << c[i] << endl;
      K--;
      if (K == 0) break;
    }
  }
  return 0;
}
