#include <iostream>
using namespace std;
int main( void )
{
	while ( !cin.eof() )
	{
		long long a, b;

		cin >> a >> b;
		if ( cin.eof() )
			break;
		long long sum = a + b;

		int cnt = 0;
		while ( sum >= 10 )
		{
			sum /= 10;
			cnt++;
		}
		
		int kotae = cnt + 1;
		cout << kotae << endl;

	}
	return 0;
}