#include <iostream>

using namespace std;

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

int main()
{
	solve();
	return(0);
}