inp = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
N = inp.shift() * 1
l = inp.shift().split(' ')
T = l.shift() * 1
A = l.shift() * 1
l = inp.shift().split(' ')
min = 10000
j = 0
for(i=0; i<N; i++) {
    abs = Math.abs(A - (T - (l[i] * 1) * 0.006))
    if (min > abs) {
        min = abs
        j = i
    }
}
console.log(j+1)