function abs() {
    echo $(($1>0?$1:-$1))
}

read N
read T A

function temper() {
    local h=$1
    echo $((T * 1000 - 6 * h))
}
function temper_diff() {
    local h=$1
    echo $(abs $(($(temper $h) - $A * 1000)))
}

heights=(`cat`)
ans=0
min=`temper_diff ${heights[0]}`
end=${#heights[@]}
for((i=1;i<end;++i))
do
    t=`temper_diff ${heights[i]}`
    if ((min > t))
    then
        ans=$i
        min=$t
    fi
done
echo $((ans + 1))
