#include<iostream>
using namespace std;

int main() {
	long long a, b;

	while (cin >> a >> b) {
		long long N = a + b;
		int digit = 0;

		while (N) {
			digit++;
			N /= 10;
		}
		cout << digit << endl;
	}
}
