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

int main()
{
	int a, b;
	stringstream ss;
	string sum;
	cin >> a>>b;
	ss << a + b;
	sum = ss.str();

	cout << sum.size() << endl;

	return 0;
}