#include <bits/stdc++.h>
const int maxn = 15;
int a[maxn][maxn];
int main() {
  int n, m = 1;
  scanf("%d", &n);
  for (int i = 0; n; n /= 10, i++) {
    int t = n % 10;
    if (t > m) m = t;
    for (int j = 0; j < t; j++) a[j][i] = 1;
  }
  printf("%d\n", m);
  for (int i = 0; i < m; i++) {
    if (i) printf(" ");
    int p;
    for (p = 11; p >= 0; p--)
      if (a[i][p]) break;
    for (; p >= 0; p--) printf("%d", a[i][p]);
  }
  printf("\n");
  return 0;
}
