import sys
for jk in sys.stdin:
    L=jk.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit import sys sys for jk in sys.stdin:
    L=jk.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit jk sys.stdin sys stdin L=jk.split(" ") L jk.split(" ") jk.split jk split " " sum = int(L[0])+int(L[1]) sum int(L[0])+int(L[1]) int(L[0]) int L[0] L 0 int(L[1]) int L[1] L 1 digit = 1 digit 1 while sum>=10:
        sum = sum/10
        digit = digit + 1

     sum>=10 sum 10 sum = sum/10 sum sum/10 sum 10 digit = digit + 1 digit digit + 1 digit 1 print sum = int(L[0])+int(L[1]) int(L[0])+int(L[1]) sum sum = sum/10 sum/10 sum digit = 1 1 digit L=jk.split(" ") jk.split(" ") L digit = digit + 1 digit + 1 digit
import sys
for jk in sys.stdin:
    L=jk.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit