#include<stdio.h>
#include<functional>
#include<queue>
#include<algorithm>
using namespace std;;
int main(void)
{
	long long n,a,b,i,sum=0,hp[100005];
	scanf("%lld%lld%lld",&n,&a,&b);
	for(i=0;i<n;i++)
	 scanf("%d",&hp[i]);
	 sort(hp,hp+n);
	 while(hp[n-1]>0)
     {

         for(i=0;i<n-1;i++) hp[i]=hp[i]-b;
         hp[n-1]=hp[n-1]-a;
         sort(hp,hp+n);
         sum++;
     }
     printf("%lld",sum);
	return 0;
}
