#include <stdio.h>

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

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

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