#include <iostream>
using namespace std;

int main() {

	while(1){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << endl;
	}

	return 0;
}