n = gets.chomp.to_i
t, a = gets.chomp.split(" ").map(&:to_i)
h = gets.chomp.split(" ").map(&:to_i)

ans = Array.new
ans[0] = -1
ans[1] = 10 ** 6 * 0.006

for i in 0...h.size
    if (t - h[i] * 0.006 - a).abs < (ans[1] - a).abs
        ans[0] = i + 1
        ans[1] = t - h[i] * 0.006
    end
end

puts ans[0]