#include<iostream>
 
  
using namespace std;
  
int main()
{
     unsigned int a,b,c,ans=0;//initializing numbers
    while(cin >> b >>c )//entering 2 numbers
    {
    a=b+c;//adding the 2 numbers
    while(a!=0)
    { 
        a/=10; ans++;//dividing sum by 10 then adding ans by 1 for number of digits
 
    }
        cout << ans << endl;//print out how many digits
        ans = 0;
     }
 
   return 0;
}