#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  for (int i = 0, output = 1; i < k; i++, output++) {
    int cp = output;
    while (cp > 0) {
      if (cp % 10 == 0) {
        output++;
        break;
      }
      cp /= 10;
    }
    cout << output << endl;
  }
  return 0;
}
