#include<bits/stdc++.h>
using namespace std;

vector<int> v[10000];
int main()
{
  int n;
  scanf("%d",&n);
  while(n!=0)
  {
    int ss=0,temp=n;
    while(temp!=0)
    {
      temp/=10;
      ss++;
    }
    int num=pow(10,ss-1);
    //temp=n;
    temp=n/num;
    n=n%num;
    for(int i=0;i<temp;i++)
    {
      v[i].push_back(num);
    }
  }
  vector<int> res;
  for(int i=0;i<1000;i++)
  {
    if(v[i].size())
      res.push_back(0);
    for(int j=0;j<v[i].size();j++)
    {
      res[i]+=v[i][j];
    }
  }
  printf("%d\n",res.size());
  for(int i=0;i<res.size();i++)
    printf("%d ",res[i]);
  return 0;
}
  
  