n = gets.to_i
t,a = gets.split.map(&:to_i)
arr = gets.split.map(&:to_i)

abs_arr = []
n.times do |i|
  abs_arr << (t - arr[i] * 0.006).abs
end

dis_arr = []
abs_arr.each do |v|
  dis_arr << (a - v).abs
end

p dis_arr.index(dis_arr.min) + 1
