#include<iostream>
using namespace std;
int main()
{
	int a, b;
	while (scanf_s("%d%d",&a,&b)!= EOF)
	{
		int l=1;
		int k = a + b;
		while (k / 10)
		{
			l++;
			k /= 10;
		}
	cout << l << endl;
	}
	return 0;
}