from math import ceil



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

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





def f(x):

    cnt = 0

    for e in h:

        cnt += max(0, ceil((e - b * x) / (a - b)))



    if cnt > x:

        return False



    return True





l = 0

r = ceil(max(h) / b)

while r - l > 1:

    mid = (l + r) // 2

    if f(mid):

        r = mid

    else:

        l = mid



print(r)

import numpy as np



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

h = np.array([int(eval(input())) for _ in range(n)], dtype=np.int64)





def f(x):

    li = h - b * x

    li[li < 0] = 0

    cnt = np.ceil(li / (a - b))

    ret = cnt.sum() <= x

    return ret





l = 0

r = np.ceil(max(h) / b).astype(np.int64)

while r - l > 1:

    mid = (l + r) // 2

    if f(mid):

        r = mid

    else:

        l = mid



print(r)

from math import ceil

n, a, b = list(map(int, input().split()))
h = [int(eval(input())) for _ in range(n)]


def f(x):
    cnt = 0
    for e in h:
        cnt += max(0, ceil((e - b * x) / (a - b)))
    if cnt > x:
        return False
    return True


l = 0
r = ceil(max(h) / b)
while r - l > 1:
    mid = (l + r) // 2
    if f(mid):
        r = mid
    else:
        l = mid
print(r)

import numpy as np

n, a, b = list(map(int, input().split()))
h = np.array([int(eval(input())) for _ in range(n)], dtype=np.int64)


def f(x):
    li = h - b * x
    li[li < 0] = 0
    cnt = np.ceil(li / (a - b))
    ret = cnt.sum() <= x
    return ret


l = 0
r = np.ceil(max(h) / b).astype(np.int64)
while r - l > 1:
    mid = (l + r) // 2
    if f(mid):
        r = mid
    else:
        l = mid
print(r)

-from math import ceil +import numpy as np -h = [int(eval(input())) for _ in range(n)] +h = np.array([int(eval(input())) for _ in range(n)], dtype=np.int64) -    cnt = 0 -    for e in h: -        cnt += max(0, ceil((e - b * x) / (a - b))) -    if cnt > x: -        return False -    return True +    li = h - b * x +    li[li < 0] = 0 +    cnt = np.ceil(li / (a - b)) +    ret = cnt.sum() <= x +    return ret -r = ceil(max(h) / b) +r = np.ceil(max(h) / b).astype(np.int64)