#include<iostream>
#include<algorithm>
#include<cmath>
#include <vector>
using namespace std;

int main(){
    int i;
    int a,b;
    while(cin>>a>>b){
        int c = a+b;
        int res = 1;
        while(c>=10){
            c/=10; res++;
        }
        cout << res << endl;
    }
    return 0;
}