

 #include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

int main(){

	int a, b, sum;

	while ( cin >> a >> b ) {
		sum=a+b;
		int ans = 0;
		while( sum > 0  )
        {
            sum=sum/10;
            ans++;
        }
		cout << ans << endl;
	}
	return 0;
}