#include <iostream>

int main()
{
	int count, a, b, tmp;

	while(std::cin>>a>>b){
		count = 0;
		tmp = a + b;
		while(tmp > 0){
			count++;
			tmp /= 10;
		}
		std::cout<<count<<std::endl;
	}
	return 0;
}