#include <iostream>

int disit_number(int num)
{
	if (num / 10 == 0) {
		return 1;
	}
	return disit_number(num / 10) + 1;
}

int main()
{
	int a, b;
	while (std::cin >> a >> b) {
		std::cout << disit_number(a + b) << std::endl;
	}
	return 0;
}