#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
void go(long long x) {
  if (x > 1e15) return;
  v.push_back(x);
  go(x * 10 + 9);
}
int main() {
  for (int i = 1; i <= 9; i++) {
    go(i);
  }
  sort(v.begin(), v.end());
  int k;
  cin >> k;
  for (int i = 0; i < k; i++) cout << v[i] << endl;
  return 0;
}
