#include <bits/stdc++.h>
using namespace std;
double sunuke(int a) {
  int A = a;
  int S = 0;
  while (a != 0) {
    int b = a % 10;
    a = (a - b) / 10;
    S += b;
  }
  return 1.0 * A / S;
}
int main() {
  int K;
  cin >> K;
  if (K <= 10) {
    for (int i = 1; i < K; ++i) {
      cout << i << endl;
    }
  } else {
    for (int i = 1; i < 10; ++i) {
      cout << i << endl;
    }
    long S = 10;
    long cnt = 9;
    while (S <= pow(10, 15)) {
      string s = to_string(S);
      int l = s.length();
      bool flag = true;
      for (int i = l - 1; i >= 1; --i) {
        if (s.at(i) != '9') {
          flag = false;
          break;
        }
      }
      if (flag) {
        cout << S << endl;
        cnt++;
      }
      S++;
    }
  }
  return 0;
}
