#include <iostream>
using namespace std;

int main()
{
	int a, b;
	int keta;

	while( cin >> a >> b )
	{
		keta = 0;
		a += b;
		while( 1 )
		{
			a /= 10;
			if( a != 0 )
			{
				keta++;	
			}else{
				break;
			}
		}
		cout << ( keta + 1 ) << endl;
	}
	return 0;
}