#include<stdio.h>

int main(){
	int a, b;
	scanf("%d %d", &a, &b);

	int s = a + b;
	int d = 1;
	while(1){
		if(s >= 10){
			s = s/10;
			d++;
		}else{
			break;
		}
	}

	printf("%d\n", d);

	return 0;
}