#include <iostream>
using namespace std;
int main() {
	int A, B, C, i = 10, test = 1,hund = 0;
	while(hund == 0)
	cin >> A >> B;
	C = A + B;
	if (C<10) {
		cout << 1 << endl;
	}
	else {
		while (test != 0) {
			i = i * 10;
			test++;
			if (C<i) {
				cout << test << endl;
				test = 0;
			}
		}
	}
}
