#include<bits/stdc++.h>
using namespace std;
int n,a,b;
int tail[100010];
bool pan(int x)
{
    int sum = 0;
    for(int i = 1;i<=n;++i)
    {
        int t = tail[i]-x*b;
        if(t>0)
        {
            sum+=(int)ceil(t*1.0/(a-b));
            if(sum>x)
                return false;
        }
    }
    return true;
}
int main()
{
    while(~scanf("%d%d%d",&n,&a,&b))
    {
        int imax = 0;
        for(int i = 1;i<=n;++i)
        {
            scanf("%d",&tail[i]);
            imax = max(imax,tail[i]);
        }
        int l = 0,r = imax;
        int mid;
        while(l<r)
        {
            mid = l+r>>1;
            if(pan(mid)) r = mid;
            else l = mid + 1;
        }
        cout<<mid+1<<'\n';
    }
}
