N=gets.to_i
T,A=gets.strip.split(' ').map(&:to_i)
H=gets.strip.split(' ').map(&:to_i)
ans=0
(N-1).times{|i|
    if (A-(T-H[ans]*0.006)).abs>(A-(T-H[i+1]*0.006)).abs
        ans=i+1
        end
}
puts ans+1