
fun main(args: Array<String>) {
	val (n, a, b) = readLine()!!.split(" ").map{ it.toInt() }
	val arr = LongArray(n)
	for (i in 0..(n - 1)) {
		val num = readLine()!!.toLong()
		arr[i] = num
	}
	val base = b.toLong()
	val diff = (a - b).toLong()
	var l = 0L
	var r = 1000000000L
	while (r - l > 1) {
		val mid = (l + r) / 2
		if (judge(mid, base, diff, arr)) {
			r = mid
		} else {
			l = mid
		}
	}
	println(r)
}

fun judge(k: Long, base: Long, diff: Long, arr: LongArray): Boolean {
	var sum = 0L
	for (v in arr) {
		val times = (v - base * k + diff - 1) / diff 
		if (times > 0) {
			sum += times
		}
	}
	return sum <= k
}