#include <iostream>

using namespace std;

int main(void)
{
	int a, b;
        int keta = 1;

	while (cin >> a >> b)
	{
		a += b;
		while ((a /= 10) != 0) keta++;

	}

	cout << keta << endl;

	return 0;
}