#include<bits/stdc++.h>
#define ll long long
using namespace std;
int n,a,b;
ll h[100010];
bool check(int x)
{
	int cnt=x;ll nw,tp;
	nw=(ll)x*b;
	for(int i=1;i<=n;i++)
	{
		if(h[i]<=nw)continue;
		else tp=h[i]-nw,cnt-=(tp/a)+(tp%a?1:0);
	}
	return cnt>=0;
}
int main()
{
	scanf("%d%d%d",&n,&a,&b);
	a-=b;
	for(int i=1;i<=n;i++)
		scanf("%lld",&h[i]);
	int l=0,r=1e9,mid,ans=1e9;
	while(l<=r)
	{
		mid=(l+r)>>1;
		if(check(mid))ans=mid,r=mid-1;
		else l=mid+1;
	}
	cout<<ans;
}