#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,a,b,d,l,m,r,c,x,y=0,j;
  cin>>n>>a>>b;
  vector<int> h(n);
  d=a-b;
  for(j=0;j<n;j++){
    cin>>h.at(j);
    y=max(y,h.at(j));
  }
  l=y/a-1;
  r=y/b+1;
  while(r-l>1){
    m=(l+r)/2;
    c=0;
    for(j=0;j<n;j++){
      x=h.at(j)-b*m;
      if(x>0){
        c+=x/d;
        if(x%d>0) c++;
        if(c>m) break;
      }
    }
    if(j==n&&c<=m) r=m;
    else l=m;
  }
  cout<<r<<endl;
}