#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	int count = 1;
	
	while (cin >> a >> b)
	{
		c = a + b;
		while (c >= 10)
		{
			c = c / 10;
			count++;
		}
		cout << count << endl;
	}
	return 0;
}