import sys
import math

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{}".format(int(math.log10(a+b))+1) import sys sys import math math for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{}".format(int(math.log10(a+b))+1) i sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines a, b = map(int, i.strip().split()) a map(int, i.strip().split()) map int i.strip().split() i.strip().split i.strip() i.strip i strip split b print "{}".format(int(math.log10(a+b))+1) "{}".format "{}" format int(math.log10(a+b))+1 int(math.log10(a+b)) int math.log10(a+b) math.log10 math log10 a+b a b 1 b = map(int, i.strip().split()) map(int, i.strip().split()) b a, b = map(int, i.strip().split()) map(int, i.strip().split()) a
import sys
import math

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{}".format(int(math.log10(a+b))+1)