while True:

    try:

        x,y=[int(i) for i in input().split()]

        print((len(str(x+y))))

    except:

        break;
import sys

while(True):

    try:

        a,b=[int(i) for i in input().split()]

        print((len(str(a+b))))

    except:

        sys.exit()
while True:
    try:
        x, y = [int(i) for i in input().split()]
        print((len(str(x + y))))
    except:
        break

import sys

while True:
    try:
        a, b = [int(i) for i in input().split()]
        print((len(str(a + b))))
    except:
        sys.exit()

+import sys + -        x, y = [int(i) for i in input().split()] -        print((len(str(x + y)))) +        a, b = [int(i) for i in input().split()] +        print((len(str(a + b)))) -        break +        sys.exit()