import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split()))))) import sys sys for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split()))))) e sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines print(len(str(sum(map(int,e.split()))))) print len(str(sum(map(int,e.split())))) len str(sum(map(int,e.split()))) str sum(map(int,e.split())) sum map(int,e.split()) map int e.split() e.split e split
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))
