#include <iostream>
using namespace std;

int main(){
	int count, a, b, tmp;

	while (cin >> a >> b){
		count = 0;
		tmp = a + b;
		while (tmp > 0){
			count++;
			tmp /= 10;
		}
		cout << count << endl;
	}
	return 0;
}
