//aoj0002
import std.stdio;

void main()
{
    int a,b;
    int sum,i;
    while(1)
    {
        readf("%d %d\n",&a,&b);
        sum = a + b;
        for(i=1; sum > 9;i++)
        {
            sum /= 10;
        }
        writeln(i);
    }
}