#include <bits/stdc++.h>
using namespace std;
bool is_ok(int k) {
  if (k % 10 == 9)
    return true;
  else if (k < 10)
    return true;
  else
    return false;
}
int main(int argc, char** argv) {
  int count;
  while (cin >> count) {
    int c = 0;
    int k = 1;
    while (c < count) {
      if (is_ok(k)) {
        cout << k << endl;
        c++;
      }
      k++;
    }
  }
  return 0;
}
