#include <bits/stdc++.h>
 
using namespace std;
 
int h[100002];
int n, a, b;
 
bool ok(int t){
	long long q = 0;
	for(int i = 1; i <= n; ++i){
		if (1ll * a * t < h[i]) return false;
		long long x = h[i] - 1ll * b * t;
		if (x > 0) q += (x - 1) / (a - b) + 1;
		if (q > t) return false; 
	}
	return true;
}
 
int main(){
	scanf("%d%d%d",&n,&a,&b);
	for(int i = 1; i <= n; ++i) scanf("%d",&h[i]);
	int l = 1, r = 1e9;
	while (l <= r){
		int md = (l + r) >> 1;
		if (ok(md)) r = md - 1;
		else l = md + 1;
	}
	printf("%d",l);
	return 0;
}