#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;

    while(scanf("%d%d",&a,&b)!=EOF)
    {
        int c=a+b;

        double d=log10(c);

        d=d+1;

        cout<<floor(d)<<endl;
    }
}