#include <iostream>

using namespace std;

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

	cin >> a >> b;

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

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