import scala.io.Source

object Main {

  def main(args: Array[String]) {
    val lines = Source.stdin.getLines.toSeq
    val n = lines.head.split(" ")(0).toInt
    val a = lines.head.split(" ")(1).toInt
    val b = lines.head.split(" ")(2).toInt
    val hs = lines.tail.map(_.toInt)
    var min_count = a * n

    def burn(xs: Seq[Int], count: Int) {
      if (min_count < count) {

      } else if (xs.isEmpty) {
        min_count = count
      } else {
        val ys = xs.zipWithIndex
        for ((x, i) <- ys) {
          burn(ys.map {
            case (x2, i2) if i == i2 => x2 - a
            case (x2, i2) => x2 - b
          }.filter(_ > 0), count + 1)
        }
      }
    }

    burn(hs, 0)
    println(min_count)
  }
}
