#include<stdio.h>

 int main(void){
   int div = 1;
   int i,s,sum,count = 0;

   fscanf(stdin,"%d %d",&i,&s);
   sum = i + s;

   while(1){
     if(sum/div == 0){
       break;
     }
     div *= 10;
     count++;
   }

   printf("%d\n",count);

   return 0;
 }