let n, a, b = Scanf.scanf "%d %d %d\n" (fun n a b -> n, a, b)
let h = Array.init n (fun _ -> Scanf.scanf " %d" (fun i -> i))

let rec f l r =
  if l = r then r
  else
    let m = (l + r) / 2 in
    let rec g i tot =
      if i = n || tot < 0 then tot
      else
        let c = h.(i) - b * m in
        let tot = tot - if c > 0 then (c - 1) / (a - b) + 1 else 0 in
        g (i + 1) tot in
    let tot = g 0 m in
    if tot < 0 then f (m + 1) r
    else f l m

let () =
  let ans = f 0 1000000000 in
  Printf.printf "%d\n" ans
