#include<iostream>
#include<algorithm>
#include<vector>
int main() {
	int a, b;
	while (std::cin >> a >> b) {
		int sum,ans=1;
		sum = a + b;
		for (int i = 10; !(sum / i==0); i*=10) {
			ans += 1;
		}
		std::cout << ans << std::endl;
	}
}