//ツ禿アツ青蚤,bツつェツ禿シツ療債つウツづェツつスツづつォツ、a+bツづ個個青板づーツ出ツ療債つケツづヲ
//ツ禿シツ療債づ個終ツづュツづィツづ孔OFツづ表ツつウツづェツづゥ

#include<iostream>
using namespace std;

int CountDigit(int x)
{
	int digit = 0;
	while(x)
	{
		x/=10;
		digit++;
	}
	return digit;
}

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