#include <bits/stdc++.h>
using namespace std;
long long int ks(long long int n) {
  long long int sn = 0, n1 = n;
  for (int i = 0; i < 18; i++) {
    sn += n1 % 10;
    n1 /= 10;
  }
  return sn;
}
int main() {
  long long int k;
  cin >> k;
  if (k < 10)
    for (int i = 1; i <= k; i++) cout << i << endl;
  else {
    for (int i = 1; i <= 9; i++) cout << i << endl;
    k -= 9;
    for (long long int i = 1; i <= k; i++) {
      long long int ret = i * 10 + 9;
      if (ret * ks(ret + 10) <= (ret + 10) * ks(ret))
        cout << ret << endl;
      else
        k++;
    }
  }
  return 0;
}
