#include<iostream>
using namespace std;

int main(){ 
    int a,b;
    while(cin>>a>>b){
        int add=a+b;
        int cnt=1;
        while(cnt >= 10){ 
            add = add/10; 
            cnt++;  
        }       
        cout << cnt << endl;
    }
    return 0;
}