111111
 100009
 10011
 1000000
 8
 10201
 102030
 908172
 123456
 415
 900000
 21
 909090
 314159
 999999
 909823
 987654
 1453
 1435
 98
 10
 2
 1

1
111111
 9
100001 1 1 1 1 1 1 1 1
 1
10011
 1
1000000
 8
1 1 1 1 1 1 1 1
 2
10101 100
 3
101010 1010 10
 9
101111 101011 101010 101010 101010 101010 101010 101000 100000
 6
111111 11111 1111 111 11 1
 5
111 101 101 101 1
 9
100000 100000 100000 100000 100000 100000 100000 100000 100000
 2
11 10
 9
101010 101010 101010 101010 101010 101010 101010 101010 101010
 9
111111 101011 101011 1011 11 1 1 1 1
 9
111111 111111 111111 111111 111111 111111 111111 111111 111111
 9
101111 101111 101101 101100 101100 101100 101100 101100 101000
 9
111111 111111 111111 111111 111110 111100 111000 110000 100000
 5
1111 111 111 110 10
 5
1111 111 111 101 1
 9
11 11 11 11 11 11 11 11 10
 1
10
 2
1 1
 1
1

#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  v.clear();
  int n, k = 0;
  cin >> n;
  while (n) {
    if (n >= 1000000) {
      k++;
      v.push_back(1000000);
      n -= 1000000;
      continue;
    }
    if (n >= 111111) {
      k++;
      v.push_back(111111);
      n -= 111111;
      continue;
    }
    if (n >= 111110) {
      k++;
      v.push_back(111110);
      n -= 111110;
      continue;
    }
    if (n >= 111101) {
      k++;
      v.push_back(111101);
      n -= 111101;
      continue;
    }
    if (n >= 111100) {
      k++;
      v.push_back(111100);
      n -= 111100;
      continue;
    }
    if (n >= 111011) {
      k++;
      v.push_back(111011);
      n -= 111011;
      continue;
    }
    if (n >= 111010) {
      k++;
      v.push_back(111010);
      n -= 111010;
      continue;
    }
    if (n >= 111001) {
      k++;
      v.push_back(111001);
      n -= 111001;
      continue;
    }
    if (n >= 111000) {
      k++;
      v.push_back(111000);
      n -= 111000;
      continue;
    }
    if (n >= 110111) {
      k++;
      v.push_back(110111);
      n -= 110111;
      continue;
    }
    if (n >= 110110) {
      k++;
      v.push_back(110110);
      n -= 110110;
      continue;
    }
    if (n >= 110101) {
      k++;
      v.push_back(110101);
      n -= 110101;
      continue;
    }
    if (n >= 110100) {
      k++;
      v.push_back(110100);
      n -= 110100;
      continue;
    }
    if (n >= 110011) {
      k++;
      v.push_back(110011);
      n -= 110011;
      continue;
    }
    if (n >= 110010) {
      k++;
      v.push_back(110010);
      n -= 110010;
      continue;
    }
    if (n >= 110001) {
      k++;
      v.push_back(110001);
      n -= 110001;
      continue;
    }
    if (n >= 110000) {
      k++;
      v.push_back(110000);
      n -= 110000;
      continue;
    }
    if (n >= 101111) {
      k++;
      v.push_back(101111);
      n -= 101111;
      continue;
    }
    if (n >= 101110) {
      k++;
      v.push_back(101110);
      n -= 101110;
      continue;
    }
    if (n >= 101101) {
      k++;
      v.push_back(101101);
      n -= 101101;
      continue;
    }
    if (n >= 101100) {
      k++;
      v.push_back(101100);
      n -= 101100;
      continue;
    }
    if (n >= 101011) {
      k++;
      v.push_back(101011);
      n -= 101011;
      continue;
    }
    if (n >= 101010) {
      k++;
      v.push_back(101010);
      n -= 101010;
      continue;
    }
    if (n >= 101001) {
      k++;
      v.push_back(101001);
      n -= 101001;
      continue;
    }
    if (n >= 101000) {
      k++;
      v.push_back(101000);
      n -= 101000;
      continue;
    }
    if (n >= 100111) {
      k++;
      v.push_back(100111);
      n -= 100111;
      continue;
    }
    if (n >= 100110) {
      k++;
      v.push_back(100110);
      n -= 100110;
      continue;
    }
    if (n >= 100101) {
      k++;
      v.push_back(100101);
      n -= 100101;
      continue;
    }
    if (n >= 100100) {
      k++;
      v.push_back(100100);
      n -= 100100;
      continue;
    }
    if (n >= 100011) {
      k++;
      v.push_back(100011);
      n -= 100011;
      continue;
    }
    if (n >= 100010) {
      k++;
      v.push_back(100010);
      n -= 100010;
      continue;
    }
    if (n >= 100001) {
      k++;
      v.push_back(100001);
      n -= 100001;
      continue;
    }
    if (n >= 100000) {
      k++;
      v.push_back(100000);
      n -= 100000;
      continue;
    }
    if (n >= 11111) {
      k++;
      v.push_back(11111);
      n -= 11111;
      continue;
    }
    if (n >= 11110) {
      k++;
      v.push_back(11110);
      n -= 11110;
      continue;
    }
    if (n >= 11101) {
      k++;
      v.push_back(11101);
      n -= 11101;
      continue;
    }
    if (n >= 11100) {
      k++;
      v.push_back(11100);
      n -= 11100;
      continue;
    }
    if (n >= 11011) {
      k++;
      v.push_back(11011);
      n -= 11011;
      continue;
    }
    if (n >= 11010) {
      k++;
      v.push_back(11010);
      n -= 11010;
      continue;
    }
    if (n >= 11001) {
      k++;
      v.push_back(11001);
      n -= 11001;
      continue;
    }
    if (n >= 11000) {
      k++;
      v.push_back(11000);
      n -= 11000;
      continue;
    }
    if (n >= 10111) {
      k++;
      v.push_back(10111);
      n -= 10111;
      continue;
    }
    if (n >= 10110) {
      k++;
      v.push_back(10110);
      n -= 10110;
      continue;
    }
    if (n >= 10101) {
      k++;
      v.push_back(10101);
      n -= 10101;
      continue;
    }
    if (n >= 10100) {
      k++;
      v.push_back(10100);
      n -= 10100;
      continue;
    }
    if (n >= 10011) {
      k++;
      v.push_back(10011);
      n -= 10011;
      continue;
    }
    if (n >= 10010) {
      k++;
      v.push_back(10010);
      n -= 10010;
      continue;
    }
    if (n >= 10001) {
      k++;
      v.push_back(10001);
      n -= 10001;
      continue;
    }
    if (n >= 10000) {
      k++;
      v.push_back(10000);
      n -= 10000;
      continue;
    }
    if (n >= 1111) {
      k++;
      v.push_back(1111);
      n -= 1111;
      continue;
    }
    if (n >= 1110) {
      k++;
      v.push_back(1110);
      n -= 1110;
      continue;
    }
    if (n >= 1101) {
      k++;
      v.push_back(1101);
      n -= 1101;
      continue;
    }
    if (n >= 1100) {
      k++;
      v.push_back(1100);
      n -= 1100;
      continue;
    }
    if (n >= 1011) {
      k++;
      v.push_back(1011);
      n -= 1011;
      continue;
    }
    if (n >= 1010) {
      k++;
      v.push_back(1010);
      n -= 1010;
      continue;
    }
    if (n >= 1001) {
      k++;
      v.push_back(1001);
      n -= 1001;
      continue;
    }
    if (n >= 1000) {
      k++;
      v.push_back(1000);
      n -= 1000;
      continue;
    }
    if (n >= 111) {
      k++;
      v.push_back(111);
      n -= 111;
      continue;
    }
    if (n >= 110) {
      k++;
      v.push_back(110);
      n -= 110;
      continue;
    }
    if (n >= 101) {
      k++;
      v.push_back(101);
      n -= 101;
      continue;
    }
    if (n >= 100) {
      k++;
      v.push_back(100);
      n -= 100;
      continue;
    }
    if (n >= 11) {
      k++;
      v.push_back(11);
      n -= 11;
      continue;
    }
    if (n >= 10) {
      k++;
      v.push_back(10);
      n -= 10;
      continue;
    }
    if (n >= 1) {
      k++;
      v.push_back(1);
      n -= 1;
      continue;
    }
  }
  cout << k << endl;
  cout << v[0];
  for (int i = 1; i < v.size(); i++) cout << " " << v[i];
  cout << endl;
  return 0;
}
