import sys,math
for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1)) import sys,math sys math line.split() for line in sys.stdin for line in sys.stdin line sys.stdin sys stdin for line in sys.stdin line.split() line.split line split for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1)) x y (line.split() for line in sys.stdin)
import sys,math
for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1))