n = gets.chomp.to_i
t, a = gets.chomp.split.map(&:to_i)
h = gets.chomp.split.map(&:to_i)
idx = 0
abs_min = 1_000_000_000
(0..(n - 1)).each do |i|
  tmp = (a - (t - h[i] * 0.006)).abs
  if tmp < abs_min
    abs_min = tmp
    idx = i
  end
end
puts (idx + 1)