_ = readLine()!
let ta = readLine()!.split(separator: " ").compactMap { Double($0) }
let t = ta[0]
let a = ta[1]
let h = readLine()!.split(separator: " ").compactMap { Double($0) }

let result = h.lazy
    .map { abs((t - $0 * 0.006) - a) }
    .enumerated()
    .min { $0.1 < $1.1 }!

print(result.0 + 1)
