#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll k;
  cin >> k;
  ll count = 0;
  ll n = 1;
  while (count < k) {
    cout << n << endl;
    count++;
    auto cn = n;
    auto depth = 1;
    while (cn >= 10) {
      cn /= 10;
      depth *= 10;
    }
    if (cn < 9) {
      n += depth;
    } else {
      n += depth * 10;
    }
  }
  return 0;
}
