'use strict'
// T−x×0.006 度

function main(input) {
  input = input.split(/\n|\s/).map(v => ~~v)

  let n = input.shift()
  let T = input.shift()
  let A = input.shift()
  //   ;[n, T, A] = [input.shift(), input.shift(), input.shift()] //input.slice(0, 3)

  let tmp = new Array(n)
  for (let i in input) {
    tmp[i] = Math.abs(A - (T - input[i] * 0.006))
  }
  // cosnt ans = Math.apply.max(null, tmp )
  //   const ans = Math.max(...tmp) + 1
  const ans = tmp.indexOf(Math.min(...tmp)) + 1
  console.log(ans)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))