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

int main()
{
	int a,b,c;
	stringstream s;

	cin >> a >> b;
	c = a+b;
	
	s << c;
	cout << s.str().size() << endl;

	return 0;
}