#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0;
  vector<int> vect, keep;
  cin >> n;
  while (n != 0) {
    keep.push_back(n % 10);
    n = n / 10;
    ++count;
  }
  reverse(keep.begin(), keep.end());
  for (auto itr = keep.begin(); itr != keep.end(); itr++) {
    int num = pow(10, count - 1);
    int k;
    vector<int>::iterator itc;
    for (itc = vect.begin(), k = *itr; itc != vect.end() && k > 0; itc++, k--) {
      *itc = *itc + num;
    }
    if (k > 0) {
      while (k--) {
        vect.push_back(num);
      }
    }
    count--;
  }
  cout << vect.size() << endl;
  for (auto itr = vect.begin(); itr != vect.end(); itr++) cout << *itr << " ";
  cout << endl;
  return 0;
}
