#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
using namespace std;
int n;
long long a,b,h[100005];
int main()
{
	cin>>n>>a>>b;
	for(int i=0;i<n;i++)
	{
		cin>>h[i];
	}
	long long lb=0,ub=100000000,mid;
	while(ub-lb>1)
	{
		mid=(lb+ub)/2;
		long long t=0;
		for(int i=0;i<n;i++)
		{
			long long x=h[i];
			x-=b*mid;
			if(x>0)
			{
				t+=(double)x/(a-b);
			}
		}
		if(t<=mid)
		{
			ub=mid;
		}
		else
		{
			lb=mid;
		}
	}
	cout<<ub;
	return 0;
}