import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val N = sc.nextInt(); val A = sc.nextInt(); val B = sc.nextInt()
  val h = new Array[Int](N)
  for(i <- 0 until N)
    h(i) = sc.nextInt()

  val enes = h.sorted

  def check(n: Int): Boolean = {
    val tmp: Long = enes.foldRight(0L){(x, y) =>
      val hoge = x - B*n
      if(hoge <= 0)
        0 + y
      else {
        val piyo = if (hoge % (A-B) > 0) 1 else 0;
        (hoge / (A-B)) + piyo + y
      }
    }
    tmp <= n
  }

  // 条件を満たす最小の値を返す
  def binarySearch(min: Int, max: Int): Int = {
    val mid: Int = (max + min) / 2
    (max - min) match{
      case 0 | 1 =>
        check(min) match{
          case true  => min
          case false => max
        }
      case _ =>
        (check(mid)) match{
          case true  => binarySearch(min, mid)
          case false => binarySearch(mid, max)
        }
    }
  }

  val ans = binarySearch(1, 1e9.toInt)
  println(ans)
}
