
#include <stdio.h>
#include <stdlib.h>

int main( int argc, char **argv ) {

  int a;
  int b;
  int s;
  int keta;

  while (1) {
    scanf("%d %d", &a, &b);
    s = a + b;
    keta = 0;
    while (s) {
      s /= 10;
      ++keta;
    }
    printf("%d\n", keta);
  }
  
  return EXIT_SUCCESS;
}