#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
 
using namespace std;
 
int main()
{
    char buf[2000];
    int a,b,c;
 
    while(scanf("%d%d",&a,&b)!=EOF){
        c=1;
        a+=b; while(a/=10) c++;
 
        cout<<c<<endl;
 
    }
 
}