import sys
for line in sys.stdin.readlines():
    a, b = map(int,line.split())
    c=int(a+b)
    count=0
    while (c/10 != 0 ):
        c=int(c/10)
        count=count+1
    print(count) import sys sys for line in sys.stdin.readlines():
    a, b = map(int,line.split())
    c=int(a+b)
    count=0
    while (c/10 != 0 ):
        c=int(c/10)
        count=count+1
    print(count) line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines a, b = map(int,line.split()) a map(int,line.split()) map int line.split() line.split line split b c=int(a+b) c int(a+b) int a+b a b count=0 count 0 while (c/10 != 0 ):
        c=int(c/10)
        count=count+1
     c/10 != 0 c/10 c 10 0 c=int(c/10) c int(c/10) int c/10 c 10 count=count+1 count count+1 count 1 print(count) print count count=0 0 count c=int(a+b) int(a+b) c c=int(c/10) int(c/10) c b = map(int,line.split()) map(int,line.split()) b a, b = map(int,line.split()) map(int,line.split()) a count=count+1 count+1 count
import sys
for line in sys.stdin.readlines():
    a, b = map(int,line.split())
    c=int(a+b)
    count=0
    while (c/10 != 0 ):
        c=int(c/10)
        count=count+1
    print(count)