require 'pp'
require 'set'

n = gets.chomp!.to_i
t, a = gets.chomp!.split(' ').map(&:to_i)
h_n = gets.chomp!.split(' ').map(&:to_i)

max = 10 ** 10
max_i = 0
h_n.each.with_index(1) do |h, i|
    temp = t - h * 0.006
    x = (a - temp).abs
    if x < max
        max = x
        max_i = i
    end
end

puts max_i
