#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;
  int flag = 0;
  while (cnt < N) {
    for (int j = i + 1; j <= 100; j++) {
      if (i / dsum(i) > (j) / dsum(j)) {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << i << endl;
      cnt++;
    }
    i += 1;
    flag = 0;
  }
  return 0;
}
