#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
	int a,b,sum,n;
	while (cin >> a >> b)
	{
		n=0;
		sum = a+b;
		while (sum != 0)
		{
			sum /= 10;
			n++;
		}
		cout<<n<<endl;
	}
	return false;
}
