#include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	int a,b,c;

	while(cin >> a >> b){

		int i;
		c = a + b;
		for( i = 0;(c /= 10) != 0;i++ );

		cout << ++i << endl;
	}
	return 0;
}