#include<iostream>
#include<vector>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <map>
#include <sstream>
#include <cmath>
#include <ctime>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>

using namespace std;

int main()
{
    long long a,b,c,sum;
    //freopen("11854.txt","r",stdin);
    while(scanf("%llu %llu",&a,&b)==2)
    {
        sum=0;
        c=0;
        sum=a+b;
        while(sum!=0)
        {
            sum=sum/10;
            c++;
        }
        printf("%llu\n",c);
    }
    return 0;
}