def new_value(seat: str, neighbors: str):
    """
    Returns the new state of one seat.
    """
    occupied_count = neighbors.count("#")
    if seat == "L" and occupied_count == 0:
        return "#"
    elif seat == "#" and 4 <= occupied_count:
        return "L"
    else:
        return seat