while True:
	try:
		value = input().split(" ")
		result = str(int(value[0]) + int(value[1]))
		print(len(result))
	except EOFError:
		break while True:
	try:
		value = input().split(" ")
		result = str(int(value[0]) + int(value[1]))
		print(len(result))
	except EOFError:
		break True try:
		value = input().split(" ")
		result = str(int(value[0]) + int(value[1]))
		print(len(result))
	except EOFError:
		break except EOFError:
		break break value = input().split(" ") value input().split(" ") ().split () input split " " result = str(int(value[0]) + int(value[1])) result str(int(value[0]) + int(value[1])) str int(value[0]) + int(value[1]) int(value[0]) int value[0] value 0 int(value[1]) int value[1] value 1 print(len(result)) print len(result) len result result = str(int(value[0]) + int(value[1])) str(int(value[0]) + int(value[1])) result value = input().split(" ") input().split(" ") value
while True:
	try:
		value = input().split(" ")
		result = str(int(value[0]) + int(value[1]))
		print(len(result))
	except EOFError:
		break