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

array = []
hs.each_with_index do |h, i|
  average_temp = t - (h * 0.006)
#   p "#{i+1} #{average_temp} #{(a - average_temp).abs}"
  array << (a - average_temp).abs
end

puts array.index(array.min) + 1