
#include <iostream>
#include <algorithm>
#include <math.h>
#include <string>
#include <cstdio>
#include <vector>
#include <set>
#include <cassert>
#include <cstdlib>
#include <complex>
#include <cctype>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <map>
#include <set>
#include <sstream>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long

ll n,a,b;
ll h[100005],t[100005];

bool check(ll m){
	ll cost=0;
	
	for(int i=0;i<n;i++){
		if(h[i]-b*m>0){
			cost+=(h[i]-b*m+(a-b-1))/(a-b);
		}
	}
	
	return cost<=m;
}
int main(){
	cin>>n>>a>>b;
	for(ll i=0;i<n;i++) 
		cin>>h[i];
	ll l=1,r=1000000000;
	while(l<=r){
		ll m=(l+r)/2;
		if(check(m)){
			r=m-1;
		}else{
			l=m+1;
		}
	}
	cout<<l<<endl;
	return 0;
}