#include<stdio.h>
#include<math.h>

int main(){

	int a = 0;
	int b = 0;
	int c = 0;
	int i = 0;

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

	c = a + b;

	for (i = 0; c != 0; i++)
	{
		c /= 10;
	}

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

	return 0;
}