N = gets.to_i
T,A = gets.split.map(&:to_i)
HS = gets.split.map(&:to_i)

near = 0
nearidx = 0

HS.each_with_index do |h,idx|
    temp = T - h * 0.006
    if (A.to_f - near.to_f).abs > (A.to_f - temp).abs then
        near = temp
        nearidx = idx
    end
end

print("#{nearidx+1}\n")