#include<iostream>

using namespace std;

int main()
{
	int n1,n2;
	int ans;
	int sum;
	
	for(;cin >> n1;)
	{
		cin >> n2;
		
		ans=1;
		sum=n1+n2;
		
		for(;sum/10>0;sum/=10)
			ans++;
		
		cout << ans << endl;
	}
}