n = gets.to_i
t,a = gets.chomp.split(" ").map(&:to_f)
h = gets.chomp.split(" ").map(&:to_f)
index = 0
min = 1000000.0
n.times do |i|
  x = t - h[i] * 0.006
  if min > (a - x).abs
    min = (a-x).abs
    index = i
  end
end
puts index+1