#include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
#include <sstream>
using namespace std;

// Digit Number(0002)
int main()
{
	int a, b;
	cin >> a >> b;
	
	stringstream ss;
	ss << a + b;

	cout << ss.str().length() << endl;

	return 0;
}