#include <bits/stdc++.h>

using namespace std;

int main() {
	long long number_1, number_2, sum;
	
	while(scanf("%ld %ld", &number_1, &number_2) != EOF) {
		sum = number_1 + number_2;
		
		stringstream result;
		result << sum;
		
		cout << result.str().size() << endl;
	}	
	return 0;
}
