#include <bits/stdc++.h>
using namespace std;
unsigned n, aux, v[1000001], k, i, l, r;
int main() {
  cin >> n;
  while (n != 0) {
    aux = n;
    l = 0;
    r = 1;
    while (aux != 0) {
      if (aux % 10 != 0) l += r;
      aux /= 10;
      r *= 10;
    }
    n -= l;
    v[k] = l;
    k++;
  }
  cout << k << "\n";
  for (i = 0; i < k; i++) cout << v[i] << " ";
  return 0;
}
