import sys
for s in sys.stdin:
    x=len(str(sum(map(int,s.split())))) 
    print x import sys sys for s in sys.stdin:
    x=len(str(sum(map(int,s.split())))) 
    print x s sys.stdin sys stdin x=len(str(sum(map(int,s.split())))) x 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 print x=len(str(sum(map(int,s.split())))) len(str(sum(map(int,s.split())))) x
import sys
for s in sys.stdin:
    x=len(str(sum(map(int,s.split())))) 
    print x