n = gets.chomp.to_i
t,a = gets.strip.split.map(&:to_i)
hs = gets.strip.split.map(&:to_i)
ans = 0
most_near_abs = 100
th = (t - h*0.006)
abs = (a - th).abs
hs.each.with_index(1) do |h,i|
  if abs < most_near_abs
    ans = i
    most_near_abs = abs
  end
end
puts ans
