#include <iostream>

using namespace std;

int main(){
    int a, b, s, cnt;
    while(cin >> a >> b){
        s = a + b;
        cnt = 0;
        while(s){
            cnt++;
            s /=10;
        }
        cout<<cnt<<endl;
    }
    return 0;
}