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