#include <map>
#include <string>
#include <iostream>
#include<vector>
#include <set>
#include<math.h>
#include<algorithm>

using namespace std;

int main()
{
	int c;
	double a, b;
	
	while (cin >> a >> b)
	{
		c = log10(a+b) + 1;
		cout << c << endl;
	}
}