let id x = x
let (n,a,b) = Scanf.scanf "%d %d %d\n" (fun n a b -> (n,a,b))
 
let array = Array.init n (fun _ -> Scanf.scanf "%d\n" id)
let () = Array.sort compare array
let l = Array.length array

let max = array.(l-1) / b

let rec func1 tmid i m =
  if i = l then m else
    let x = array.(i) - b*tmid in
    if x < 0 then func1 tmid (i+1) m
    else if x mod (a-b) = 0 then func1 tmid (i+1) (m + x/(a-b))
    else func1 tmid (i+1) (m + 1+x/(a-b))

let rec func tmin tmax =
  let tmid = (tmax + tmin) / 2 in
  let tsuika = func1 tmid 0 0 in
  if tsuika <= tmid then (if tmax - tmin = 1 then tmin else func tmin tmid)
  else (if tmax - tmin = 1 then tmax else func tmid tmax)

let ans = if max <= 1 then 1 else func 1 max

let () =
  Printf.printf "%d\n" ans