#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int a, b, sum, ans;
	while(cin >> a >> b)
	{
		sum = a + b;
		ans = (int)log10 ((double)sum)+ 1;
	    cout << ans << endl;
	}
	
	return 0;
}