#include <bits/stdc++.h>
using namespace std;
int dsum(long long int x) {
  int ret = 0;
  while (x > 0) {
    ret += x % 10;
    x /= 10;
  }
  return ret;
}
int main() {
  vector<long long> a;
  vector<long long> b;
  for (int i = 0; i < 16; ++i) {
    for (int j = 1; j < 10; ++j) {
      long long x = j;
      for (int k = 0; k < i; ++k) {
        x = x * 10 + 9;
      }
      a.push_back(x);
      b.push_back(dsum(x));
    }
  }
  int k;
  cin >> k;
  for (int i = 0; i < k; ++i) {
    cout << a[i] << "\n";
  }
}
