#include <iostream>
using namespace std;

int main(void)
{
	int a, b, waru = 1, sum, count=0;

	while (cin >> a >> b)
	{
		count = 0;
		sum = a + b;
		while (sum != 0)
		{
			sum /= 10;
			count++;
		}
		cout << count << endl;;
	}
	return 0;
}


