#include <bits/stdc++.h>
using namespace std;
int ds(long long int x) {
  if (x < 10)
    return x;
  else
    return x % 10 + ds(x / 10);
}
int main() {
  long long int p10[17];
  p10[0] = 1;
  for (long long i = 0; i < 16; i++) p10[i + 1] = p10[i] * 10;
  vector<long long int> ans;
  for (long long i = 1; i < 10; i++) ans.push_back(i);
  for (long long i = 0; i < 17; i++) {
    for (long long c = 1; c < i * 10; c++) {
      if (c % 10 != 0) ans.push_back(p10[i] * c - 1);
    }
  }
  sort(ans.begin(), ans.end());
  int k;
  cin >> k;
  for (long long i = 0; i < k; i++) cout << ans[i] << endl;
  return 0;
}
