#include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	a = (int)log10((double)a) + 1;
	b = (int)log10((double)b) + 1;

	cout << a + b << endl;

	return 0;
}