#include<iostream>
using namespace std;
int main()
{
    long int i,j,k,l=0;

    while(cin>>i>>j)
    {
    k=i+j;
    //cout<<k;
    while(k!=0)
    {
        k=k/10;
        l+=1;
    }
    cout<<l<<endl;
    l=0;
    }
    return 0;
}