#include <bits/stdc++.h>
using namespace std;
int INF = 1000000000;
int main(){
  int N;
  long long A, B;
  cin >> N >> A >> B;
  vector<long long> h(N);
  for (int i = 0; i < N; i++){
    cin >> h[i];
  }
  int tv = INF;
  int fv = 0;
  while (tv - fv > 1){
    int mv = (tv + fv) / 2;
    vector<long long> h2 = h;
    for (int i = 0; i < N; i++){
      h2[i] -= B * mv;
    }
    long long cnt = 0;
    for (int i = 0; i < N; i++){
      if (h2[i] > 0){
        cnt += (h2[i] + (A - B) - 1) / (A - B);
      }
    }
    if (cnt <= mv){
      tv = mv;
    } else {
      fv = mv;
    }
  }
  cout << tv << endl;
}