def bb
    n = gets.chomp.to_i
    t,a = gets.chomp.split(/\s/).map{|x| x.to_i}
    h = gets.chomp.split(/\s/).map{|x| x.to_i}

    o = []
    for i in 0..(n-1)
        o.push((a - (t-h[i]*0.006)).abs)
    end

    puts o.index(o.min)+1
end

bb