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

int main()
{
	int n = 200;
	while (n--) {
		int a, b;
		stringstream ss;
		string sum;
		cin >> a >> b;
		ss << a + b;
		sum = ss.str();

		cout << sum.size() << endl;
	}

	return 0;
}