#include<iostream>
#include<cmath>

using namespace std;

int main(){
    int a,b,s;

    while(cin>>a>>b){
        s = a+b;
        int t = log10(s) +1 ;
        cout << t << endl;
    }
    return 0;
}