#include <iostream>
using namespace std;

int main()
{
	int value,value_2;
	
	while(cin >> value >> value_2)
	{
		int count = 1;
		int sum = value + value_2;
		while(sum / 10 != 0)
		{
			sum /= 10;
			count++;
		}

		cout << count << endl;
		count == 0;
	}
	return 0;
}