import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])
    c=a+b
    if c!=0:
        print(int(1.0000001+math.log(c,10)))
    else:
        print(1) import math math import sys sys for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])
    c=a+b
    if c!=0:
        print(int(1.0000001+math.log(c,10)))
    else:
        print(1) line sys.stdin sys stdin words=line.strip().split(" ") words line.strip().split(" ") line.strip().split line.strip() line.strip line strip split " " a=int(words[0]) a int(words[0]) int words[0] words 0 b=int(words[1]) b int(words[1]) int words[1] words 1 c=a+b c a+b a b if c!=0:
        print(int(1.0000001+math.log(c,10)))
    else:
        print(1) c!=0 c 0 print(int(1.0000001+math.log(c,10))) print int(1.0000001+math.log(c,10)) int 1.0000001+math.log(c,10) 1.0000001 math.log(c,10) math.log math log c 10 print(1) print 1 words=line.strip().split(" ") line.strip().split(" ") words b=int(words[1]) int(words[1]) b c=a+b a+b c a=int(words[0]) int(words[0]) a
import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])
    c=a+b
    if c!=0:
        print(int(1.0000001+math.log(c,10)))
    else:
        print(1)