import sys

while (True):
    L = map(int, sys.stdin.readline().split())

    if L:
        (a, b) = L
        c = a + b
    
        cnt = 1
        while (c >= 10):
            c /= 10
            cnt += 1

        print cnt

    else:
        break import sys sys while (True):
    L = map(int, sys.stdin.readline().split())

    if L:
        (a, b) = L
        c = a + b
    
        cnt = 1
        while (c >= 10):
            c /= 10
            cnt += 1

        print cnt

    else:
        break True L = map(int, sys.stdin.readline().split()) L map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split if L:
        (a, b) = L
        c = a + b
    
        cnt = 1
        while (c >= 10):
            c /= 10
            cnt += 1

        print cnt

    else:
        break L (a, b) = L (a, b) a b L c = a + b c a + b a b cnt = 1 cnt 1 while (c >= 10):
            c /= 10
            cnt += 1

         c >= 10 c 10 c /= 10 c 10 cnt += 1 cnt 1 print break cnt = 1 1 cnt cnt += 1 1 cnt c /= 10 10 c L = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) L c = a + b a + b c
import sys

while (True):
    L = map(int, sys.stdin.readline().split())

    if L:
        (a, b) = L
        c = a + b
    
        cnt = 1
        while (c >= 10):
            c /= 10
            cnt += 1

        print cnt

    else:
        break