#include <iostream>

int main(int argc, char **argv) {
	int a, b, sum, digit = 0;
	std::cin >> a >> b;
	sum = a + b;
	
	while(sum != 0) {
		sum /= 10;
		digit += 1;
	}
	std::cout << digit << std::endl;

}
