#include <bits/stdc++.h>
using namespace std;
int arr[100005];
int main() {
  string s;
  int n, i, j, dg[8], m = 0;
  cin >> s;
  for (i = 0; i < s.size(); i++) dg[i + 1] = s[i] - '0';
  for (i = 1; i <= s.size(); i++) {
    j = 0;
    while (dg[i] > 0) {
      dg[i]--;
      arr[j] += pow(10, s.size() - i);
      j++;
    }
    m = max(m, j);
  }
  cout << m << endl;
  for (i = 0; i < m; i++) cout << arr[i] << " ";
  return 0;
}
