local N, T, A = io.read("*n", "*n", "*n")
local H = {}
for i = 1, N do
    H[i] = io.read("*n")
end

local near_index = 0
H[near_index] = 100000
for i = 1, N do
    if A - (T - H[i] * 0.006) 
    <  A - (T - H[near_index] * 0.006) then
        near_index = i
    end
end

print(near_index)