N = gets.to_i

str = gets.split
T,A = str[0].to_i, str[1].to_i

str2 = gets.split
H = []

for x in 0...N
  H[x+1] = str2[x].to_i
end

TminusA = T-A

dif_min = (TminusA - H[1] * 0.006).abs
answer = 1

for x in 2..N
  dif = (TminusA - H[x] * 0.006).abs
  if dif < dif_min
    dif_min = dif
    answer = x
  end
end

puts(answer)