import math
while True:
    try:
        lst = list(map(int, input().split()))
        a, b = lst[0], lst[1]
        c = str(a+b)
        print(len(c))

    except EOFError:
        break import math math while True:
    try:
        lst = list(map(int, input().split()))
        a, b = lst[0], lst[1]
        c = str(a+b)
        print(len(c))

    except EOFError:
        break True try:
        lst = list(map(int, input().split()))
        a, b = lst[0], lst[1]
        c = str(a+b)
        print(len(c))

    except EOFError:
        break except EOFError:
        break break lst = list(map(int, input().split())) lst list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split a, b = lst[0], lst[1] a lst[0] lst 0 b lst[1] lst 1 c = str(a+b) c str(a+b) str a+b a b print(len(c)) print len(c) len c c = str(a+b) str(a+b) c a, b = lst[0], lst[1] lst[0] a b = lst[0], lst[1] lst[1] b lst = list(map(int, input().split())) list(map(int, input().split())) lst
import math
while True:
    try:
        lst = list(map(int, input().split()))
        a, b = lst[0], lst[1]
        c = str(a+b)
        print(len(c))

    except EOFError:
        break
