#include <iostream>

int calc_digit_number(int n){
	int ret = 0;
	while(n > 0){
		ret++;
		n /= 10;
	}
	return ret;
}

int main(int argc, char **argv){
	int a = 0;
	int b = 0;

	while(std::cin >> a >> b){
		std::cout << calc_digit_number(a + b) << std::endl;
	}
	return 0;
}