import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr)) import sys sys l = [] l [] for line in sys.stdin:
    l.append(line) line sys.stdin sys stdin l.append(line) l.append l append line for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr)) i range(len(l)) range len(l) len l numl = l[i].split(' ') numl l[i].split(' ') [i].split [i] l i split ' ' a = int(numl[0]) a int(numl[0]) int numl[0] numl 0 b = int(numl[1]) b int(numl[1]) int numl[1] numl 1 sum = a + b sum a + b a b digitstr = "{0}".format(sum) digitstr "{0}".format(sum) "{0}".format "{0}" format sum print(len(digitstr)) print len(digitstr) len digitstr a = int(numl[0]) int(numl[0]) a b = int(numl[1]) int(numl[1]) b sum = a + b a + b sum numl = l[i].split(' ') l[i].split(' ') numl l = [] [] l digitstr = "{0}".format(sum) "{0}".format(sum) digitstr
import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))