#include <iostream>
using namespace std;
int main() {
	int A, B, C, i = 10, test = 1;
	while (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;
				}
			}
		}
	}
}
