let rec for_fold a b f v = if a >= b then v else for_fold (a+1) b f (f v a)

let () =
  Scanf.scanf "%d %d %d" @@ fun n a b ->
  let h = Array.init n (fun _ -> Scanf.scanf " %d" ((+) 0)) in

  let rec loop l r =
    if l+1 >= r then r
    else
      let m = (l+r) / 2 in
      let c = Array.fold_left (fun s e -> s + (e - m * b + a - b - 1) / (a-b)) 0 h in
      if c <= m then loop l m else loop m r
  in
  loop 0 1010101010 |> Printf.printf "%d\n"