#include <iostream>
#include <math.h>
using namespace std;

int main(void) 
{
	int a,b,c;
	while (cin>>a>>b)
	{
		a += b;
		c = 0;
		while (a < 0, c++, a /= 10);
		cout << c << endl;
	}
	
	return 0;
}