#include<iostream>
#include<bits/stdc++.h>
#include<cmath>
using namespace std; 
int main() 
{ 
long long int a,b,count=0; 
while(cin>>a>>b) 
{
count=log10(a+b)+1; 
cout<<count<<endl;
}
return 0; 
} 

    
