#include <bits/stdc++.h>
using namespace std;
int getSunuke(int in) {
  string input = to_string(in);
  int s = 0;
  for (int i = 0; i < (int)input.size(); ++i) {
    char a = input[i];
    s += a - '0';
  }
  return s;
}
int main() {
  int K;
  cin >> K;
  int ans = 0;
  int c = 1;
  int f = 0;
  while (ans != K) {
    f = 0;
    for (int n = 1; n < 1000; n++) {
      if (float(float(c) / float(getSunuke(c))) >
          float(float(c + n) / float(getSunuke(c + n)))) {
        f = 1;
        break;
      }
    }
    if (f == 0) {
      ans++;
      printf("%i\n", c);
    }
    c++;
  }
  return 0;
}
