def get_first_step_basement(instructions: str) -> int:
    """get the first step that reaches the first basement"""
    floor = 0

    for step, word in enumerate(instructions):
        if word == "(":
            floor += 1
        elif word == ")":
            floor -= 1
        else:
            raise ValueError(f"{word} is not a valid instruction")
        if floor == -1:
            return step + 1

    raise ValueError(f"with the given instructions it did not reach the -1 floor")