#include <iostream>
using namespace std;

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