#include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int count;

	for(i = 0; i < 2; i++){
		scanf("%d", &a[i]);
	}
	i = a[0] + a[1];
	count = 0;
	do{
		count++;
	}while((i = i/10) > 0);

	printf("%d\n", count);
	
	return 0;
	
}