#include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int b[2];
	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);

		b[0] = count;

	printf("%d\n", b[0]);
	
	return 0;
	
}