(* O(n) *)
let solve n t a hs =
  List.fold_left
    (fun ((mi, min_i), i) h ->
      let d = abs_float (float_of_int t -. 0.006 *. float_of_int h -. float_of_int a) in
      if d < mi then
        ((d, i), i + 1)
      else
        ((mi, min_i), i + 1))
    ((max_float, -1), 1)
    hs |> fst |> snd

let read_ints () = read_line () |> Str.split (Str.regexp " ") |> List.map int_of_string

let _ =
  let n = read_int () in
  match read_ints () with
  | [t; a] -> read_ints () |> solve n t a |> string_of_int |> print_endline
  | _ -> ()