#include <stdio.h>

int main(void)
{
	int a, b;
	int add;
	int count;

	scanf("%d %d", &a, &b);

	add = a + b;

	count = 0;

	while (add){
		add /= 10;

		count++;
	}

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

	return (0);
}