#include <sstream>

#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	string x=to_string(a+b);
	cout << x.size() << endl;
	return 0;
}