#include <iostream>

using namespace std;

int h[100005];

int func(int n,int a,int b,int t)
{
	for(int i=0;i<n;i++)
	{
		h[i]-=t*b;
	}
	int temp=0;
	for(int i=0;i<n;i++)
	{
		temp+=(h[i]+a-1)/a;
	}
	return temp<=t;
}

int main()
{
	int n,a,b;
	cin>>n>>a>>b;
	for(int i=0;i<n;i++)
	{
		cin>>h[i];
	}
	
	int low=0,high=n-1,mid=(low+high)/2;
	while(low<high)
	{
		mid=(low+high)/2;
		if(func(n,a,b,mid))
		{
			high=mid;
		}
		else
		{
			low=mid+1;
		}
	}
	cout<<low<<endl;
	return 0;
}