#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0;
  cin >> n;
  for (long long i = 1; count < n; i++) {
    if (i < 10 || i % 10 == 9) {
      cout << i << endl;
      count++;
    }
    if (count == n) {
      getchar();
      getchar();
      return 0;
    }
  }
  getchar();
  getchar();
  return 0;
}
