#include <cstdio>
using namespace std;

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