#include <iostream>
#include <cmath>
 
using namespace std;
 
int main(){
    int a, b;
    int sum=0;
 
    while(cin >> a >> b){
 
    sum = log10(a+b) +1;
     
 
        cout << sum << endl;
    }
}