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

ans = Float::INFINITY
min_diff = Float::INFINITY

H.each.with_index(1) do |h, i|
  diff = (A - (T - h * 0.006)).abs

  if min_diff > diff
    min_diff = diff
    ans = i
  end
end

puts ans
