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