#include <iostream>
using namespace std;


int main(){
	double a, b, c;
	int i;
	while (cin >> a >> b){
		c = a + b;
		i = 1;
		while (c >= 10){
			c = c / 10;
			i++;
		}
		cout << i << endl;
	}

	return 0;
}