#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s, s2;
  long long k, count = 0;
  cin >> k;
  for (int i = 1; i <= 9; i++) {
    cout << i << endl;
    count++;
    if (i == k) {
      return 0;
    }
  }
  double d = 1.0, num = 0.0, num2 = 0.0;
  long long nn = 10;
  for (long long i = 19; i <= 1000000000000000; i += nn) {
    if (count == k) {
      break;
    }
    num = 0;
    num2 = 0;
    s = to_string(i);
    if (i > nn) {
      s2 = to_string(i - nn);
    }
    for (int j = 0; j < s2.size(); j++) {
      num2 += s2[j] - '0';
    }
    for (int j = 0; j < s.size(); j++) {
      num += s[j] - '0';
    }
    if (i / num < (i - (nn)) / num2) {
      i -= nn;
      nn *= 10;
      continue;
    }
    cout << i << endl;
    count++;
  }
  return 0;
}
