#include <iostream>

using namespace std;

int main(){
	int n, m, dig;
    while(cin >> n >> m){
        dig = 0;
        n += m;
        while(n){
            n /= 10;
            dig++;
        }
        cout << dig << endl;
    }
}