def inputInts
    gets.chomp.split(" ").map(&:to_i)
end

def getTemp(h)
    @T - h * 0.006
end

def getDiff(index)
    (getTemp(@Hn[index-1]) - @A).abs
end

N = gets.to_i
@T, @A = inputInts
@Hn = inputInts

ans = 1
min_d = getDiff(1)
(1..N).each do |i|
    target_d = getDiff(i)
    if min_d > target_d
        min_d = target_d
        ans = i
    end
end

puts ans

