#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cmath>

using namespace std;

int main(void) {
	int a=0, b=0;
	while (cin >> a >> b) {
		cout << int(log10(a + b) + 1) << endl;
	}
	return 0;
}