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

int n;
ll a, b;
vector< ll> v;

bool possible(ll t) {
    ll x = t * b;
    ll cnt = 0;
    for (ll e : v) {
        if(e <= x) continue;
        e = e - x;
        cnt += (e + a - 1) / a;
    }
    if(cnt <= t) return true;
    return false;
}

int main() {
    cin >> n >> a >> b;
    a = a - b;
    v.resize(n);

    for (auto &e : v) cin >> e;

    ll res = 0;
    for (ll t = 1e9; t >= 1; t /= 2) {
        while (!possible(res + t)) res += t;
    }

    cout << res + 1 << endl;
}