#include <bits/stdc++.h>
using namespace std;
int sumsum(int a) {
  int b = 0;
  while (a > 0) {
    b += a % 10;
    a /= 10;
  }
  return b;
}
int main(void) {
  long long k, i = 1, l, r, cnt = 0;
  bool c = false;
  cin >> k;
  while (1) {
    if (c == false) l = i / sumsum(i);
    r = (i + 1) / sumsum(i + 1);
    if (l <= r) {
      cout << i << endl;
      c = false;
      cnt++;
    } else {
      c = true;
    }
    i++;
    if (cnt == k) break;
  }
  return 0;
}
