#include<stdio.h>

int main(){
  int a, b;
  while(scanf("%d %d", &a, &b) != EOF){
    int i=0;
    int c=a+b;
    while(c != 0){
      i++;
      c = c / 10;
    }
    printf("%d\n", i);
  }
  return 0;
}