#xs = [int(x) for x in input().split()]
import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    i = a + b
    j = 1
    while i >= 10:
        i = i / 10
        j = j + 1
    print(j) import sys sys for line in sys.stdin:
    a, b = map(int, line.split())
    i = a + b
    j = 1
    while i >= 10:
        i = i / 10
        j = j + 1
    print(j) line sys.stdin sys stdin a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b i = a + b i a + b a b j = 1 j 1 while i >= 10:
        i = i / 10
        j = j + 1
     i >= 10 i 10 i = i / 10 i i / 10 i 10 j = j + 1 j j + 1 j 1 print(j) print j a, b = map(int, line.split()) map(int, line.split()) a i = i / 10 i / 10 i i = a + b a + b i b = map(int, line.split()) map(int, line.split()) b j = 1 1 j j = j + 1 j + 1 j
#xs = [int(x) for x in input().split()]
import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    i = a + b
    j = 1
    while i >= 10:
        i = i / 10
        j = j + 1
    print(j)