#include "stdio.h"

int main()
{
	int a, b, x, p;

	p = 1;

	for(int i = 0; i < 200; i++){
		scanf("%d %d", &a, &b);

		x = a + b;

		while(x >= 10){
			x /= 10;

			p++;
		}

		printf("%d\n", p);
	}
}