#include<iostream>
using namespace std;
int main() {
	unsigned int a, b,i;
	while (1) {
		cin >> a ;
		if (a == EOF) break;
		cin >> b;
		a += b;
		for (i = 0; a / 10 != 0; i++) {
			a /= 10;
		}
		cout << i + 1 << endl;
	}
	return 0;
}