#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
	int a,b;
	while(~scanf("%d%d",&a,&b))
	{
		int c;
		int i;
		c=a+b;
		while(c)
		{
			i++;
			c /=10;
		}
		cout<<i<<endl;
	
	}
	return 0;
}
