#include<iostream>
#include<cstdio>

using namespace std;

int main(){
   int a,b,x,i;
   
   while(cin>>a>>b){
      i = 0;
      x = a+b;
      
      for(;;){
         if(x <= 0)
            break;
         
         x = x/10;
         i++;
      }
      printf("%d\n",i);
   }
   return 0;
}