#include <bits/stdc++.h>
using namespace std;
map<unsigned long long, unsigned long long> m;
unsigned long long dig = 10;
unsigned long long next(unsigned long long n) {
  if (n < 9) return n + 1;
  if ((n / dig) < 9)
    n += dig;
  else {
    dig *= 10;
    n += dig;
  }
  return n;
}
void SnukeNumbers() {
  unsigned long long K;
  cin >> K;
  unsigned long long c = 0;
  unsigned long long n = 1;
  while (c < K) {
    cout << n << "\n";
    n = next(n);
    c++;
  }
}
int main() {
  SnukeNumbers();
  return 0;
}
