# ABC063 D - Widespread

def check(x,hp):

    hp=[hh-(b*x) for hh in hp]

    explosion=0

    for hhh in hp:

        if hhh<=0:continue

        if hhh%(a-b)==0:

            explosion+=hhh//(a-b)

        else:

            explosion+=hhh//(a-b)+1

    return explosion<=x



n,a,b=list(map(int,input().split()))

h=[int(eval(input())) for i in range(n)]

lo=0

hi=10**9

while hi-lo>1:

    mid=(hi+lo)//2

    if check(mid,h):

        hi=mid

    else:

        lo=mid

print((lo+1))
from math import ceil

def check(x,hp):

    hp=[hh-(b*x) for hh in hp]

    cnt=0

    for p in hp:

        if p<=0:continue

        cnt+=ceil(p/(a-b))

    return cnt<=x



n,a,b=list(map(int,input().split()))

h=[int(eval(input())) for i in range(n)]

lo=0

hi=10**9

while hi-lo>1:

    mid=(hi+lo)//2

    if check(mid,h):

        hi=mid

    else:

        lo=mid

ans=hi

# htとloどちらを出力すればよい？

# print(lo)

print(hi)
# ABC063 D - Widespread
def check(x, hp):
    hp = [hh - (b * x) for hh in hp]
    explosion = 0
    for hhh in hp:
        if hhh <= 0:
            continue
        if hhh % (a - b) == 0:
            explosion += hhh // (a - b)
        else:
            explosion += hhh // (a - b) + 1
    return explosion <= x


n, a, b = list(map(int, input().split()))
h = [int(eval(input())) for i in range(n)]
lo = 0
hi = 10**9
while hi - lo > 1:
    mid = (hi + lo) // 2
    if check(mid, h):
        hi = mid
    else:
        lo = mid
print((lo + 1))

from math import ceil


def check(x, hp):
    hp = [hh - (b * x) for hh in hp]
    cnt = 0
    for p in hp:
        if p <= 0:
            continue
        cnt += ceil(p / (a - b))
    return cnt <= x


n, a, b = list(map(int, input().split()))
h = [int(eval(input())) for i in range(n)]
lo = 0
hi = 10**9
while hi - lo > 1:
    mid = (hi + lo) // 2
    if check(mid, h):
        hi = mid
    else:
        lo = mid
ans = hi
# htとloどちらを出力すればよい？
# print(lo)
print(hi)

-# ABC063 D - Widespread +from math import ceil + + -    explosion = 0 -    for hhh in hp: -        if hhh <= 0: +    cnt = 0 +    for p in hp: +        if p <= 0: -        if hhh % (a - b) == 0: -            explosion += hhh // (a - b) -        else: -            explosion += hhh // (a - b) + 1 -    return explosion <= x +        cnt += ceil(p / (a - b)) +    return cnt <= x -print((lo + 1)) +ans = hi +# htとloどちらを出力すればよい？ +# print(lo) +print(hi)