#include <bits/stdc++.h>
using namespace std;
vector<int> dx = {1, -1, 0, 0};
vector<int> dy = {0, 0, 1, -1};
int main() {
  int K;
  cin >> K;
  int i = 1;
  int cnt = 0;
  while (K > cnt) {
    if (i <= 9) {
      cout << i << endl;
      cnt++;
    } else if (i % 10 == 9) {
      cout << i << endl;
      cnt++;
    }
    i++;
  }
  return 0;
}
