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