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