#include <bits/stdc++.h>
using namespace std;
long dig_sum(long num) {
  long ans = 0;
  while (num > 0) {
    ans += num % 10;
    num /= 10;
  }
  return ans;
}
bool judge(long num) {
  if (num * dig_sum(num + 1) <= (num + 1) * dig_sum(num)) {
    return true;
  } else {
    return false;
  }
}
int main() {
  long num;
  cin >> num;
  for (long i = 0; i < 9; i++) {
    if (num == 0) {
      break;
    }
    cout << i + 1 << endl;
    num--;
  }
  long next = 19;
  while (num > 0) {
    if (judge(next) == true) {
      cout << next << endl;
      num--;
    }
    next++;
  }
  return 0;
}
