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

best = 10**10
best_i = nil
n.times do |i|
  temp = t - h[i] * 0.006
  diff = (a-temp).abs
  if diff < best
    best = diff
    best_i = i
  end
end

puts best_i+1