#include <iostream>
#include <algorithm>
using namespace std;

int calc_sum_bit(int sum)
{
	int res = 0;
	if (sum == 0) return 1;
	while (sum != 0)
	{
		++res;
		sum/= 10;
	}
	return res;
}

int main()
{
	int a, b;

	while(cin >> a >> b)
	{
		int sum = a + b;
		cout << calc_sum_bit(sum) << endl;
	}

	return 0;
}