program main
  implicit none
  integer(8) :: n, i, a, b, mi, ma, md
  integer(8), allocatable :: h(:)
  read *, n, a, b
  allocate (h(n))
  do i = 1, n
    read *, h(i)
  end do

  mi = 0  ! NG
  ma = 10 ** 9  ! OK
  do while (ma - mi > 1)
    md = mi + (ma - mi) / 2
    if (isok(md)) then
      ma = md
    else
      mi = md
    end if
  end do
  print "(i0)", ma

  contains

  logical function isok(x)
    integer(8), intent(in) :: x
    integer(8) :: i, cnt
    cnt = 0
    do i = 1, n
      cnt = cnt + ceiling(max(h(i) - x * b, 0_8) / dble(a - b))
    end do
    isok = (cnt <= x)
  end function isok
end program main
