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