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

cities = []
H.each_with_index do |h, i|
  cities.push([(A - (T - h * 0.006)).abs, i + 1])
end

cities.sort_by!{|city| city[0]}
puts cities[0][1]