#include<iostream> 
using namespace std; 
void fun(int);
int main() 
{ 
	int a=0,b;
	while (getchar() != EOF)
	{
		cin >> a >> b;
		fun(a + b);
		getchar();
	} 
	return 0; 
}
void fun(int a)
{
	int n = 0;
	while (a)
	{
		a = a / 10;
		n++;
	}
	cout << n << endl;
}