#include <bits/stdc++.h>
using namespace std;
long long check(int n) {
  long long count = 0;
  while (n / 10 == 0) {
    count += (n % 10);
    n /= 10;
  }
  count += n;
  return count;
}
int main() {
  long long K;
  cin >> K;
  long long count = 0;
  long long num = 1;
  while (count < K) {
    if (num % 10 == num) {
      count++;
      cout << num << endl;
    } else if ((num != 10) && (num % 10 == 0)) {
      count++;
      cout << num - 1 << endl;
    }
    num++;
  }
  return 0;
}
