#include <iostream>
using namespace std;
int Digit(int a,int b){
    int ans,sum;
    ans = 0;
    sum = a+b;
    while(sum!=0){
        sum = sum/10;
        ans++;
    }
    return ans;
}

int main(){
    int x,y;
    int ans;

    while(cin >> x >> y){
    ans=Digit(x,y);
    cout << ans << endl;
    }
    return 0;
}