#include<iostream>

using namespace std;

int main() {
	int a, b;
	int work;
	int ans = 0;
	while (cin >> a >> b) {
		ans = 0;
		work = a + b;
		while (work > 0) {
			work = work / 10;
			ans++;
		}
		cout << ans << endl;
	}

	return 0;
}
