import math

lst = []
while True:
    try:
        a, b = map(int, input().split())
        lst.append(int(math.log10(a+b))+1)
    except EOFError:
        for i in lst:
            print(i)
        break import math math lst = [] lst [] while True:
    try:
        a, b = map(int, input().split())
        lst.append(int(math.log10(a+b))+1)
    except EOFError:
        for i in lst:
            print(i)
        break True try:
        a, b = map(int, input().split())
        lst.append(int(math.log10(a+b))+1)
    except EOFError:
        for i in lst:
            print(i)
        break except EOFError:
        for i in lst:
            print(i)
        break for i in lst:
            print(i)
         i lst print(i) print i break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b lst.append(int(math.log10(a+b))+1) lst.append lst append int(math.log10(a+b))+1 int(math.log10(a+b)) int math.log10(a+b) math.log10 math log10 a+b a b 1 lst = [] [] lst b = map(int, input().split()) map(int, input().split()) b a, b = map(int, input().split()) map(int, input().split()) a
import math

lst = []
while True:
    try:
        a, b = map(int, input().split())
        lst.append(int(math.log10(a+b))+1)
    except EOFError:
        for i in lst:
            print(i)
        break