#include<iostream>
#include<algorithm>

using namespace std;

int main()
{
    int a,b,d,count;
    while(cin>>a>>b)
    {
       count=0;
       d=a+b;
       while(d!=0){
          d=d/10;
          count++;         
       }
       cout<<count;
    }
}