def get_multiplicity(lines):
    """
    Returns the multiplicity of the computation. Uses the SCF value.
    If no multiplicity can be found, it returns 0
    """
    for line in reversed(lines):
        if line[:13] == ' Multiplicity':
            return int(line.split()[-1])
    return 0