import sys
for line in sys.stdin.readlines():
    a,b = map(int, line.strip().split())
    print len(str(a+b)) import sys sys for line in sys.stdin.readlines():
    a,b = map(int, line.strip().split())
    print len(str(a+b)) line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines a,b = map(int, line.strip().split()) a map(int, line.strip().split()) map int line.strip().split() line.strip().split line.strip() line.strip line strip split b print len(str(a+b)) len str(a+b) str a+b a b b = map(int, line.strip().split()) map(int, line.strip().split()) b a,b = map(int, line.strip().split()) map(int, line.strip().split()) a
import sys
for line in sys.stdin.readlines():
    a,b = map(int, line.strip().split())
    print len(str(a+b))