import sys;

for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count); import sys sys for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count); line sys.stdin sys stdin int(num) for num in line.split() for num in line.split() num line.split() line.split line split for num in line.split() int(num) int num a = [int(num) for num in line.split()] a [int(num) for num in line.split()] sum = a[0] + a[1] sum a[0] + a[1] a[0] a 0 a[1] a 1 count = 0 count 0 while sum > 0:
		count += 1;
		sum //= 10;
	 sum > 0 sum 0 count += 1 count 1 sum //= 10 sum 10 print(count) print count count = 0 0 count a = [int(num) for num in line.split()] [int(num) for num in line.split()] a count += 1 1 count sum = a[0] + a[1] a[0] + a[1] sum sum //= 10 10 sum
import sys;

for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count);