def ceiling(array, target):
    start_point = 0
    end_point = len(array)

    while(start_point<=end_point):
        middle_point = (start_point + end_point)//2

        if array[middle_point] > target:
            end_point = middle_point-1
        elif array[middle_point] < target:
            start_point = middle_point+1
        else:
            return middle_point
    return end_point

array = [-10,-7,-2,10,45,78,100,200,600,800]
target = 76

ans = ceiling(array, target)
print(ans)
bf32d79d747f169492dc2cc2e8c40966a61cf760
<mask token>

def ceiling(array, target):
    start_point = 0
    end_point = len(array)
    while start_point <= end_point:
        middle_point = (start_point + end_point) // 2
        if array[middle_point] > target:
            end_point = middle_point - 1
        elif array[middle_point] < target:
            start_point = middle_point + 1
        else:
            return middle_point
    return end_point


<mask token>

def ceiling(array, target):
    start_point = 0
    end_point = len(array)
    while start_point <= end_point:
        middle_point = (start_point + end_point) // 2
        if array[middle_point] > target:
            end_point = middle_point - 1
        elif array[middle_point] < target:
            start_point = middle_point + 1
        else:
            return middle_point
    return end_point


<mask token>
print(ans)

def ceiling(array, target):
    start_point = 0
    end_point = len(array)
    while start_point <= end_point:
        middle_point = (start_point + end_point) // 2
        if array[middle_point] > target:
            end_point = middle_point - 1
        elif array[middle_point] < target:
            start_point = middle_point + 1
        else:
            return middle_point
    return end_point


array = [-10, -7, -2, 10, 45, 78, 100, 200, 600, 800]
target = 76
ans = ceiling(array, target)
print(ans)

def ceiling(array, target):
    start_point = 0
    end_point = len(array)

    while(start_point<=end_point):
        middle_point = (start_point + end_point)//2

        if array[middle_point] > target:
            end_point = middle_point-1
        elif array[middle_point] < target:
            start_point = middle_point+1
        else:
            return middle_point
    return end_point

array = [-10,-7,-2,10,45,78,100,200,600,800]
target = 76

ans = ceiling(array, target)
print(ans)