n = gets.chomp.to_i
t, a = gets.chomp.split(' ').map(&:to_i)
list = gets.chomp.split(' ').map(&:to_i)

result = 0
temperature = 0

n.times do |i|
  temp = t - (list[i] * 0.006).to_i
  if i == 0
    result = i+1
    temperature = temp
    next
  end
  if (n.abs - temp.abs) == 0
    result = i+1
    break
  end

  if (n.abs > temp.abs && temp.abs > temperature.abs) || (temperature.abs > temp.abs && temp.abs > n.abs)
    result = i+1
    temperature = temp
  end
end

print result
