import math

digit = []
while True:
    try:
        a,b =raw_input().split()
        c = int(a)+int(b)
        digit.append(int(math.log10(c) + 1))
    except:
        break
for i in range(0,len(digit)):
    print digit[i] import math math digit = [] digit [] while True:
    try:
        a,b =raw_input().split()
        c = int(a)+int(b)
        digit.append(int(math.log10(c) + 1))
    except:
        break True try:
        a,b =raw_input().split()
        c = int(a)+int(b)
        digit.append(int(math.log10(c) + 1))
    except:
        break except:
        break break a,b =raw_input().split() a raw_input().split() ().split () raw_input split b c = int(a)+int(b) c int(a)+int(b) int(a) int a int(b) int b digit.append(int(math.log10(c) + 1)) digit.append digit append int(math.log10(c) + 1) int math.log10(c) + 1 math.log10(c) math.log10 math log10 c 1 for i in range(0,len(digit)):
    print digit[i] i range(0,len(digit)) range 0 len(digit) len digit print digit[i] digit i digit = [] [] digit b =raw_input().split() raw_input().split() b c = int(a)+int(b) int(a)+int(b) c a,b =raw_input().split() raw_input().split() a
import math

digit = []
while True:
    try:
        a,b =raw_input().split()
        c = int(a)+int(b)
        digit.append(int(math.log10(c) + 1))
    except:
        break
for i in range(0,len(digit)):
    print digit[i]