#include <iostream>

using namespace std;

int main(int argc, char const *argv[]) {
	int a, b;
	int ans = 0;
	cin >> a >> b;

	int sum = a + b;
	for (int i = 0; sum >= 1; i++, ans++) sum /= 10;

	cout << ans << endl;
	return 0;
}