#include<iostream>
using namespace std;
int main(){
    int a,b;
    int sum,r;
    cin>>a>>b;
    sum=a+b;
    int count=0;
    while(sum>0){
                  sum=sum/10;
                  sum;
                  
                  count++;
                  }
                  cout<<count<<endl;
                  
                  return 0;
                  }