#include <bits/stdc++.h>
using namespace std;
int dsum(int n) {
  int res = 0;
  for (int i = 20; i >= 0; i--) {
    int k = int(pow(10, i));
    res += int(n / k);
    n = n % k;
  }
  return float(res);
}
int main() {
  int N;
  int cnt = 0;
  float i = 1;
  cin >> N;
  while (cnt < N) {
    float A = i / dsum(i);
    float B = (i + 2) / dsum(i + 2);
    if (A <= B) {
      cout << i << endl;
      cnt++;
    }
    i += 1;
  }
  return 0;
}
