#include <cstdio>
#include <iostream>

using namespace std;

int main() {
	int a, b;
	while (scanf("%d%d", &a, &b) != EOF) {
		a += b, b = 0;
		while (a) ++b, a /= 10;
		printf ("%d\n", b); 
	}
	return 0;
}