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

