#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long K;
  cin >> K;
  priority_queue<long long, vector<long long>, greater<long long>> Q;
  for (long long i = (long long)(1); i < (long long)(10); i++) Q.push(i);
  for (long long i = (long long)(0); i < (long long)(K); i++) {
    long long X = Q.top();
    Q.pop();
    cout << X << endl;
    Q.push(X * 10 + 9);
  }
}
