
#include <iostream>
int main(){
	while (true){
		int input_num[2], sum;
		int count = 0;
		std::cin >> input_num[0] >> input_num[1];
		if (std::cin.eof())
			break;
		sum = input_num[0] + input_num[1];
		while (sum){
			count++;
			sum /= 10;
		}
		std::cout << count << '\n';
	}
}
