#include<iostream>
#include<sstream>
#include<string>
using namespace std;
int main() {

	unsigned int a, b;
	unsigned int cnt = 0;

	cin >> a >> b;

	int ans = a + b;

	stringstream ss;
	ss << ans;
	string sum = ss.str();

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

	return 0;
}