#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main(){
    int num1, num2;
    
    while(cin >> num1 >> num2){
        int result = 1;
        
        num1 += num2;
        
        for(;num1/10 > 0;){
            num1 /= 10;
            result++;
        }
        
        cout << result << endl;
    }
    
    return 0;
}