#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  for (int i = 1; i <= 9; i++) v.push_back(i);
  long long mul = 10;
  for (int x = 1; x <= 15; x++, mul *= 10) {
    for (int y = 0; y < x * 10; y++) v.push_back((long long)(y + 1) * mul - 1);
  }
  sort(v.begin(), v.end());
  v.resize(unique(v.begin(), v.end()) - v.begin());
  int K;
  cin >> K;
  for (int i = 0; i < K; i++) cout << v[i] << "\n";
  return 0;
}
