#include<iostream>
using namespace std;

int main(void){
	unsigned long long int a,b,sum;
	while(cin >> a >> b){
		sum = a + b;
		unsigned long int ans = 1;
		while(sum > 10){
			sum = sum / 10;
			ans++;
		}
		cout << ans << endl;
	}
	return 0;
}