import sys

a = ""
for input in sys.stdin:
    a += input
l = a.split()
for i in range(0,len(l),2):
    print len(str(int(l[i])+int(l[i+1]))) import sys sys a = "" a "" for input in sys.stdin:
    a += input input sys.stdin sys stdin a += input a input l = a.split() l a.split() a.split a split for i in range(0,len(l),2):
    print len(str(int(l[i])+int(l[i+1]))) i range(0,len(l),2) range 0 len(l) len l 2 print len(str(int(l[i])+int(l[i+1]))) len str(int(l[i])+int(l[i+1])) str int(l[i])+int(l[i+1]) int(l[i]) int l[i] l i int(l[i+1]) int l[i+1] l i+1 i 1 a = "" "" a a += input input a l = a.split() a.split() l
import sys

a = ""
for input in sys.stdin:
    a += input
l = a.split()
for i in range(0,len(l),2):
    print len(str(int(l[i])+int(l[i+1])))
