#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<string>
#include<cctype>
#include<vector>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<list>
#include<algorithm>
using namespace std;

#define LL long long
#define LLU unsigned long long
#define re return(0)
#define pi 2*acos(0.0)

const int infinity=100000000000;

int main()
{
    LL a,b;
    while(cin>>a>>b)
    {
        LL sum,ans;
        sum=a+b;
        ans=0;
        while(sum>0)
        {
            ans++;
            sum/=10;
        }
        cout<<ans<<endl;
    }
    re;
}