#include <bits/stdc++.h>   using namespace std;   string n;   int i, j, a[9][7], x, y;   int main() {     cin >> n;     for (i = n.size() - 1; i >= 0; i--) {       x = n[i] - 48;       y = max(y, x);       for (j = 0; j < x; j++) a[j][7 + i - n.size()] = 1;     }     cout << y << endl;     for (i = 0; i < y; cout <<    , i++)       for (j = 0, x = 0; j < 7; j++) {         if (a[i][j] != 0) x = 1;         if (x != 0) cout << a[i][j];       }     cout << endl;     return 0;   }   