#include <iostream>
#include <string>

using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (cin)
	{
		cin >> a >> b;
		
		stringstream ss;
		ss < (a + b);
		cout << ss.str().size() << endl;
	}
	return 0;
}