#include <bits/stdc++.h>
using namespace std;
int main() {
  int number;
  vector<int> track;
  int sum = 0;
  cin >> number;
  while (number) {
    int temp = number;
    int fuck = 0, digit, qua, c = 0;
    while (temp) {
      c++;
      digit = temp % 10;
      temp = temp / 10;
      if (digit) {
        if (c == 1) {
          fuck += 1;
        } else {
          int k = 1;
          for (int i = 2; i <= c; i++) {
            k = k * 10;
          }
          fuck += k;
        }
      }
    }
    track.push_back(fuck);
    number = number - fuck;
  }
  cout << track.size() << endl;
  for (int i = 0; i < track.size(); i++) {
    cout << track[i] << " ";
  }
  cout << endl;
}
