#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define pb push_back
#define mp make_pair
#define rep(i,n) for(int i=0;i<(n);++i)

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	ll n,a,b;cin >> n >> a >> b;
	vector<ll> A(n);
	rep(i,n) cin >> A.at(i);
	ll l=0,r=1000000000;
	while(r-l>1){
		ll k=l+(r-l)/2,sum=0;
		rep(i,n){
			if(A.at(i)-b*k>0){
				if((A.at(i)-b*k)%(a-b)==0) sum+=(A.at(i)-b*k)/(a-b);
				else sum+=(A.at(i)-b*k)/(a-b)+1;
			}
		}
		if(sum<=k) r=k;
		else l=k;
	}
	cout << r << endl;
}