amo = gets.to_i
t, goal = gets.split.map(&:to_i)
places = gets.chomp.strip.split.map(&:to_i)

temps = places.map{|place| t - place * 0.006}

temps.map!{|temp| (goal - temp).abs}

puts temps.rindex(temps.min) + 1