import scala.io.StdIn.readLine

object Main extends App {
  val Array(n, a, b) = readLine.split(" ").map(_.toLong)
  val h = for(i <- 0 until n.toInt) yield readLine.toLong
  val c = a - b

  val maxH = h.max
  val maxT = maxH / b + 1

  // rightT is always valid
  // leftT is always invalid

  def calc(leftT: Long, rightT: Long): Long = {
    if(rightT - leftT <= 1) rightT
    else {
      val midT = (leftT + rightT) / 2
      val curT = h.foldLeft(0L){(t, v) => {
        val l = v - midT * b
        if(l > 0) t + (l - 1) / c + 1
        else t
      }}
      if(midT < curT) calc(midT, rightT)
      else if(midT == curT) midT
      else calc(leftT, midT)
    }
  }
  println(calc(0, maxT))
}