#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const long long dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
long long Digit_Sum(long long n) {
  long long Cmp = 0;
  while (n) {
    Cmp += n % 10;
    n /= 10;
  }
  return Cmp;
}
double Value(long long n) { return (double)n / Digit_Sum(n); }
signed main() {
  long long k;
  cin >> k;
  double KVal = (double)k / Digit_Sum(k);
  long long Ans = 0;
  long long i = k + 1;
  while (Ans < k) {
    if (Value(i) >= KVal) {
      cout << i << endl;
      Ans++;
    }
    i++;
  }
  return 0;
}
