n = gets.to_i
t, a = gets.split.map &:to_i
h = gets.split.map &:to_i
min = Float::INFINITY
mini = 0
for i in 0...n
  x = (a - t + h[i]*0.006).abs
  if x < min
    mini = i
    min = x
  end
end
p mini+1