#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  int ans[11] = {0};
  for (int i = 0; i < n.length(); i++) {
    int x = n[i] - '0';
    int y = ceil(pow(10, n.length() - i - 1));
    for (int j = 0; j < x; j++) {
      ans[j] += y;
    }
  }
  int i = 0;
  int c = 0;
  while (ans[i] != 0) {
    c++;
    i++;
  }
  cout << c << endl;
  for (int j = 0; j < c - 1; j++) {
    cout << ans[j] << " ";
  }
  cout << ans[c - 1] << endl;
  return 0;
}
