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