#include <bits/stdc++.h>
using namespace std;
long long s(long long m) {
  long long a = 0;
  while (m / 10 != 0) {
    a += m % 10;
    m = m - (m % 10);
    m /= 10;
  }
  a += m;
  return a;
}
int main() {
  long long n;
  cin >> n;
  long long a = 0, sn = s(n), c = 0;
  long long x = 0;
  cout << sn << endl;
  while (c < 9) {
    while (true) {
      if (s(x) > sn) {
        cout << x << endl;
        sn = x;
        x++;
        break;
      }
      x++;
    }
    c++;
  }
  return 0;
}
