#include "bits/stdc++.h"
using namespace std;

int main() {
	long long N, A, B;
	cin >> N >> A >> B;
	vector<long long>H(N);
	for (int i = 0; i < N; ++i) {
		cin >> H[i];
	}
	long long l = -1;
	long long r = 1e9;
	while (l + 1 < r) {
		long long c = (l + r) / 2;
		long long count = 0;
		for (int n = 0; n < N; ++n) {
			long long tmph = H[n];
			tmph -= c * B;
			if (tmph > 0) {
				count += (tmph + A - B - 1) / (A - B);
			}
		}
		if (count > c) {
			l = c;
		}
		else {
			r = c;
		}
	}
	cout << r << endl;
	return 0;
}