#include <iostream>

using namespace std;

int main(){
	int ans[200],cnt[200]={0};
	int i = 0,a,b;

	while(cin >> a >> b){
		ans[i] = a + b;
		while(ans[i] != 0){
			ans[i] /= 10;
			cnt[i]++;
		}
		i++;
	}
	for(int j = 0;j < i;j++) cout << cnt[i] << endl;
	return 0;
}