#include<iostream>

int main() {
	int a, b,total,truss;
	while (std::cin >> a >> b) {
		total = a + b;
		for (truss = 0; total != 0; truss += 1) {
			total = int(total / 10);
		}
		std::cout << truss << std::endl;



	}
	return 0;
}
