#include <cstdio>
#include <cstring>

int main()
{
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF)
	{
		int s = a+b;
		int ans = 1;
		while (s > 9)
		{
			s /= 10;
			++ans;
		}
		printf("%d\n", ans);
	}

	return 0;
}