#include <bits/stdc++.h>
using namespace std;
int s(string n) {
  int ret = 0;
  for (auto it = n.begin(); it != n.end(); ++it) {
    ret += *it - '0';
  }
  return ret;
}
int mpow(int a, int b) {
  int ret = 1;
  for (int i = 0; i < b; ++i) {
    ret *= a;
  }
  return ret;
}
bool test(string n, int keta) {
  int intn = stoi(n);
  int sint = s(n);
  return mpow(10, keta) * sint >= intn;
}
int main() {
  int K;
  cin >> K;
  string bgn = "";
  int counter = 1;
  int keta = 0;
  int cnt = 0;
  while (cnt < K) {
    string res = to_string(counter) + bgn;
    if (test(res, keta)) {
      cout << res << endl;
      ++counter;
      ++cnt;
    } else {
      ++keta;
      bgn += '9';
      counter /= 10;
    }
  }
  return 0;
}
