#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>
using namespace std;

int main()
{
	int a, b;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		char len[10];
		sprintf(len, "%d", a + b);
		string sum(len);
		cout << sum.size() << endl;
	}
	return 0;
}