import math
import sys

for num in sys.stdin:
	num = num.split()
	a = int(num[0])
	b = int(num[1])
	size = int (math.log10(a+b) + 1)
	print(size) import math math import sys sys for num in sys.stdin:
	num = num.split()
	a = int(num[0])
	b = int(num[1])
	size = int (math.log10(a+b) + 1)
	print(size) num sys.stdin sys stdin num = num.split() num num.split() num.split num split a = int(num[0]) a int(num[0]) int num[0] num 0 b = int(num[1]) b int(num[1]) int num[1] num 1 size = int (math.log10(a+b) + 1) size int (math.log10(a+b) + 1) int math.log10(a+b) + 1 math.log10(a+b) math.log10 math log10 a+b a b 1 print(size) print size b = int(num[1]) int(num[1]) b a = int(num[0]) int(num[0]) a num = num.split() num.split() num size = int (math.log10(a+b) + 1) int (math.log10(a+b) + 1) size
import math
import sys

for num in sys.stdin:
	num = num.split()
	a = int(num[0])
	b = int(num[1])
	size = int (math.log10(a+b) + 1)
	print(size)
