N = gets.to_i
T, A = gets.split(' ').map(&:to_i)
H = gets.split(' ').map(&:to_i)
teps = []
for h in H do
  tep = T - (h * 0.006)
  teps << tep
end
gaps = []
teps.each_index do |idx|
  # ans = idx + 1 if gap > 
  gaps << (teps[idx] - A).abs
end
p (gaps.index(gaps.min) + 1)