#include <iostream>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b){
        int sum=a+b, c=0;
        while(sum){
            sum/=10;
            c++;
        }
        cout<<c<<endl;
    }
    return 0;
}
