#include <iostream>
using namespace std;

int main() {
	int a, b, c;
	while (cin >> a >> b) {
		int d = 1;
		c = a + b;
		while (c/ 10 >= 1) {
			c /= 10;
			d++;
		}
	cout << d << endl;
	}
	return 0;
}