#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  int i, n = s.size();
  vector<string> fans;
  while (1) {
    string cans;
    int st = 0;
    for (i = 0; i < n; i++) {
      if (s[i] > '0') {
        s[i]--;
        st = 1;
        cans += '1';
      } else if (st) {
        cans += '0';
      }
    }
    if (cans.size() == 0) break;
    fans.push_back(cans);
  }
  cout << fans.size() << endl;
  for (i = 0; i < (int)fans.size(); i++) {
    cout << fans[i] << " ";
  }
  cout << endl;
  return 0;
}
