#include<bits/stdc++.h>
using namespace std;

int main(){
    int a,b;
    while(scanf("%d %d",&a,&b) != EOF){
        int sum = a + b, cnt = (sum == 0 ? 1 : 0);
        while(sum > 0){
            sum /= 10;
            cnt++;
        }
        cout << cnt << endl;
    }

    return 0;
}
