import Foundation
func toTuple<T>(_ args: [T]) -> (T, T) { (args[0], args[1]) }
func toTuple<T>(_ args: [T]) -> (T, T, T) { (args[0], args[1], args[2]) }
func toTuple<T>(_ args: [T]) -> (T, T, T, T) { (args[0], args[1], args[2], args[3]) }
func readInts() -> [Int] { readLine()!.split(separator: " ").map { Int($0)! } }
func readDoubles() -> [Double] { readLine()!.split(separator: " ").map { Double($0)! } }
func readStrings() -> [String] { readLine()!.split(separator: " ").map { String($0) } }

let n = Int(readLine()!)!
let (t, a) = toTuple(readDoubles())
let hi = readDoubles()

var d = 9999.0
var ans = 0
for i in 0..<n {
  let tt = t - hi[i] * 0.006
  if d > abs(a - tt) {
    ans = i + 1
    d = abs(a - tt)
  }
}
print(ans)