#include <iostream>
using namespace std;

int main()
{
	int a,b,sum;
	int count = 1;
	
	cin >> a >> b;

	sum = a + b;

	sum = sum / 10;

	while(sum >= 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;
		

	return 0;
}