#include <iostream>
#include <string>

using namespace std;

int main()
{
	int digit;
	int a = 0, b = 0;
	string sum;

	while ( cin >> a >> b )
	{
		sum = to_string( a + b );
		digit = sum.length();
		cout << digit << endl;
	}

	return 0;

}