n = gets.chomp
t, a = gets.split.map(&:to_i)
hs = gets.split.map(&:to_i)
ret = nil
ret_h = nil
hs.each_with_index do |h, i|
  unless ret
    ret = i
    ret_h = t - (h * 0.006)
  else
    tmp_h = t - (h * 0.006)
    if (ret_h - a).abs > (tmp_h - a).abs
      ret = i
      ret_h = tmp_h
    end
  end
end
puts (ret + 1)
