N = gets.to_i
T, A = gets.split.map(&:to_i)
H = gets.split.map(&:to_i)

ans_h_i = nil
min_diff = Float::INFINITY
H.each.with_index(1) do |h, i|
  t = T - h * 0.006
  diff = (A - t).abs
  if min_diff > diff
    min_diff = diff
    ans_h_i = i
  end
end

puts ans_h_i
