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