#include <iostream>
using namespace std;

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

	sum = a + b;

	for(int i = 1 ;sum != 0 ;i++){

		sum /= 10;
		count = i;
	}

	cout << count << endl;
	

	return 0;
}