#include<iostream>
#include<algorithm>

using namespace std;
            
int main(){

    int x,y;
    
    while(cin >> x >> y){
        int goukei = x + y;
        int count  = 1;
        while(goukei > 9){
            goukei /= 10;
            count++; 
        }
        cout << count << endl;
    }
	return 0;
}