import java.io._

//import scala.io.StdIn._
import scala.math._

object Main {
	def main(args: Array[String]) {
		val cin = new java.util.Scanner(System.in)
		val N = cin.nextInt()
		val A = cin.nextInt()
		val B = cin.nextInt()
		val h = new Array[Int](N)
		for (i <- 0 until N){
			h(i) = cin.nextInt()
		}
		var r = h.max / B + 1
//		var l = h.sum / (A+B*(N-1))  // sum may overflow
		var l = h.max / A
		while (l<r){
			var m = (l+r)/2
			val acc = m*B
			var cnt = 0
			for (i<-0 until N){
				val res = h(i) - acc
				if (res<=0){
					;
				}
				else{
					cnt += (res-1) / (A-B) + 1
				}
			}
			val flagCover = cnt <= m
			if (flagCover)
				r = m
			else
				l = m+1
		}
		println(l)
	}
}