def parse_line(line):
    """ Function used to parse LM+NT hash(es) from input line
    """
    parts = line.strip().split(":")
    if len(parts) == 1:
        return parts[0]
    elif len(parts) == 2:
        if parts[0] and parts[1]:
            return ":".join(parts)
    elif len(parts) >= 4:
        return ":".join(parts[2:4])
    raise ValueError("Could not parse hash(es) from input: <%s>" % line)