#include<bits/stdc++.h>
using namespace std;
long n,a,b,h[100000],i,ng=-1,m,ok=1e10,c;
int main(){
  for(cin>>n>>a>>b,a-=b;i<n;)cin>>h[i++];
  while(abs(ok-ng)>1){
    m=(ok+ng)/2;
    for(c=i=0;i<n;i++)if(h[i]>m*b)c+=(h[i]-m*b+a-1)/a;
    if(c<=m)ok=m;
    else ng=m;
  }
  cout<<ok<<endl;
}
