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

diff = Float::INFINITY
ans = nil

h.each_with_index do |hh, i|
  current_diff = (a - (t - hh*0.006)).abs 
  if current_diff < diff
    diff = current_diff
    ans = i+1
  end
end

puts ans