#include<bits/stdc++.h>
using namespace std;

int main()
{
    int a,b;

    while(cin>>a>>b)
    {
        int x=a+b;
        int cnt = 0;

        while(x)
        {
            cnt++;
            x/=10;        }

        cout<<cnt<<endl;
    }

    return 0;
}