#include <bits/stdc++.h>
using namespace std;
priority_queue<int> sta;
int main(){
int t=0,i,j,k,m,n,a,b;
scanf("%d%d%d",&n,&a,&b);
for(i=1;i<=n;i=-~i){
scanf("%d",&k);
sta.push(k);
}
t+=a;
k=sta.top();
sta.pop();
k-=b;
sta.push(k);
while(1){
k=sta.top();
sta.pop();
if(k-t<=0){
printf("%d",t/a);
return 0;
}
t+=a;
k-=b;
sta.push(k);
}
return 0;
}