#include <bits/stdc++.h>
using namespace std;
int main() {
  long long K, c, I = 1, i, S;
  cin >> K;
  while (c < K) {
    if (I <= 8) {
      cout << I << endl;
      c += 1;
    } else if ((I % 10) == 9) {
      cout << I << endl;
      c += 1;
    }
    I += 1;
  }
  return 0;
}
