#include<iostream>

using namespace std;

int main()
{
	int num[2];
	int numLength = sizeof(num) / sizeof(num[0]);
	int n = 1;
	int sum = 0;
	
	int h;
	for(h = 0; h < numLength; h++)
	{
		cin >> num[h];
		sum += num[h];
	}
	
	while(sum/10 != 0){
		n++;
		sum = sum / 10;
	}
	
	cout << n << endl;
	
	return(0);
}