//aoj0002
import std.stdio;

void main()
{
    int a,b;
    int sum,count;
    while(1)
    {
        count = 1;
        readf("%d %d\n",&a,&b);
        sum = a + b;
        while(sum >= 1)
        {
            sum /= 10;
            if(sum < 1) break;
            count++;
        }
        writeln(count);
    }
}