def find_neg_and_pos_index(sorted_list: list):
    """
    Finds the least negative, negative value and the least positive, positive value (including 0).
    :param sorted_list: The (un-squared) input list
    :return: The negative index and positive index
    """
    neg_index = 0
    pos_index = 0
    pos_evaluated = False
    for i in range(len(sorted_list)):
        if sorted_list[i] < 0: # find the least negative, negative number
            neg_index = i
        if sorted_list[i] >= 0 and not pos_evaluated: # Find the least positive positive number
            # This includes 0
            pos_index = i
            pos_evaluated = True

    if sorted_list[neg_index] == 0:
        neg_index = len(sorted_list)

    return neg_index, pos_index