import math

while True:
    try:
        line = input().split(" ")
        if(len(line) != 2):
            exit()
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break import math math while True:
    try:
        line = input().split(" ")
        if(len(line) != 2):
            exit()
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break True try:
        line = input().split(" ")
        if(len(line) != 2):
            exit()
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break except:
        break break line = input().split(" ") line input().split(" ") ().split () input split " " if(len(line) != 2):
            exit()
         len(line) != 2 len(line) len line 2 exit() exit a = int(line[0]) a int(line[0]) int line[0] line 0 b = int(line[1]) b int(line[1]) int line[1] line 1 print(int(math.log10(a+b))+1) print 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 a = int(line[0]) int(line[0]) a b = int(line[1]) int(line[1]) b line = input().split(" ") input().split(" ") line
import math

while True:
    try:
        line = input().split(" ")
        if(len(line) != 2):
            exit()
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break