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

sum = 100000
ans = 0
arr.each_with_index do |x,i|
  tmp = t - (x.to_f * 0.006)
  p tmp
  if (a - sum).abs > (a - tmp).abs
    sum = tmp
    ans = i + 1
  end
end

p ans