open System

[<EntryPoint>]
let main argv =
    let [|n;a;b|] =  stdin.ReadLine().Split(' ') |> Array.map int
    let h = stdin.ReadToEnd().Split('\n') |> Array.map int
    stdin.Close()
    let mutable ok = int(1e9)+1
    let mutable ng = 0
    let isOk c = 
        let sum = List.sum [for hi in h -> max 0 (hi - b*c + a - b + 1)/(a-b)]
        sum <= a
    while (abs (ok-ng) > 1) do
        let m = (ok+ng)/2
        if isOk m then ok <- m else ng <- m
    printfn "%i" (ng+1)
    0