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

int main() {
	int N, A, B;
	static long long H[100000], MAX = 0;
	cin >> N >> A >> B;
	for (int i = 0; i < N; i++) {
		cin >> H[i];
		MAX = max(MAX, H[i]);
	}
	long long L = 0, R = MAX / B + 1;
	while (R - L > 0) {
		long long count = 0, mid = (L + R) / 2;
		for (int i = 0; i < N; i++) {
			int h = H[i];
			h = max((long long)0, h - B * mid);
			if (h % (B - A) == 0) count += h / (A - B);
			else count += h / (A - B) + 1;
		}
		if (count <= mid) R = mid;
		else L = mid + 1;
	}
	cout << L;
}