#include<iostream>
using namespace std;
int main(void){
    int a,b;
    while(cin >> a >> b){
    a+=b;
    b=1;
        for(int i=1; i<=7; i++){
            b=b*10;
            if(a < b){
                cout << i << endl;
                break;
            }
        }
    }
}
