#include<iostream>

using namespace std;

int main(void)
{
	int a,b;
	while(cin>>a>>b)
	{
		int c=a+b;
		int ans=1;
		while(1){
			c=c/10;
			if(c==0){break;}
			else{
				ans++;
			}
		}
		cout<<ans<<endl;
	}
}