#include <iostream>
#include <fstream>
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <sstream>
#include <string>
#include <vector>
#include <list>

using namespace std;

#define ll long long
#define ss stringstream
#define rep(i,n) for(int (i)=1;(i)<=(n);(i)++)
#define rep0(i,n) for(int (i)=0;(i)<(n);(i)++)

const ll INF=1000000000000000000;
ll n,a,b,h[1000050],l=1,r=INF;
bool check(ll m){
	ll d=m*b;
	rep(i,n){
		if(d>h[i])continue;
		else{
			if((h[i]-d)%(a-b)==0)m-=(h[i]-d)/(a-b);
			else m=m-(h[i]-d)/(a-b)-1;
			if(m<=0)return 0;
		}
	}
	return 1;
}
int main()
{
	ll ans;
	cin>>n>>a>>b;
	rep(i,n)cin>>h[i];
	while(l<=r){
		ll mid=(l+r)/2;	//cout<<mid<<' '<<l<<' '<<r<<' '<<check(mid)<<endl;
		if(check(mid))r=mid-1;
		else l=mid+1;
		ans=mid;
	}

	cout<<ans;
	return 0;
}