#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#define ll long long
using namespace std;
int main()
{
    //int k,i,j,tep,x,a[170],m;
    int a,b,c,d,e,f,n;
   // long long int n;
    while(cin>>a>>b)
    {
        cout<<(int)log10(a+b)+1<<endl;
    }

    return 0;
}