#include <stdio.h>

int main() {
  
  int a,b,c,count;
  
  while(scanf("%d %d",&a,&b)!=EOF) {
    
    count=1;

    c=a+b;
    while(c>=10) {
      c=c/10;
      
      count++;
    }
    
    printf("%d\n",count);
  }
  
  return 0;
}