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

min = 1000000000000000
min_h = 0

hh.each_with_index do |h, i|
  kion = t - h * 0.006
  diff = (a - kion).abs
  if diff < min
    min = diff
    min_h = i
  end
end

puts min_h + 1
