#include <iostream>

int main() {
	using namespace std;

	for (;;) {
		int a, b;
		cin >> a >> b;
		if (cin.eof()) { break; }

		int sum = a + b;
		int num = 0;
		for (; sum != 0; ++num) {
			sum /= 10;
		}

		cout << num << endl;
	}
	return 0;
}