#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  int n;
  cin >> n;
  while (n) {
    int N = n, m = 0, p = 1;
    while (N) {
      if (N % 10) m += p;
      N /= 10, p *= 10;
    }
    n -= m;
    v.push_back(m);
  }
  cout << v.size() << '\n';
  for (int to : v) cout << to << ' ';
}
