#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
long long modi(long long a, long long m) { return power(a, m - 2, m); }
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  set<long long> v;
  for (long long i = 1; i <= 9; i++) {
    v.insert(i);
  }
  long long last = 9;
  while (last <= 1000000000000000) {
    vector<long long> temp;
    for (auto c : v) {
      temp.push_back(c * 10 + 9);
      last = temp.back();
    }
    for (auto c : temp) {
      v.insert(c);
    }
  }
  long long n;
  cin >> n;
  auto it = v.begin();
  while (n--) {
    cout << *it << endl;
    it++;
  }
  return 0;
}
