import numpy as np



N, A, B = list(map(int, input().split()))

H = np.zeros(shape=N, dtype='int64')

for _ in range(N):

    h = int(eval(input()))

    H[_] = h





def calc(num, a):

    a -= num * B

    a = (a - 1)//(A - B) + 1

    if sum(a[a > 0]) <= num:

        return True

    else:

        return False





start = 0

end = 10 ** 10



while end - start > 1:

    mid = (start + end) // 2

    if calc(mid, H.copy()):

        end = mid

    else:

        start = mid



print(end)

N, A, B = list(map(int, input().split()))

H = [int(eval(input())) for _ in range(N)]





def calc(num, a):

    cnt = 0

    for i, h in enumerate(a):

        x = h - num * B

        x = (x - 1) // (A - B) + 1

        if x > 0:

            cnt += x

    if cnt <= num:

        return True

    else:

        return False





start = 0

end = 10 ** 10



while end - start > 1:

    mid = (start + end) // 2

    if calc(mid, H[:]):

        end = mid

    else:

        start = mid



print(end)

import numpy as np

N, A, B = list(map(int, input().split()))
H = np.zeros(shape=N, dtype="int64")
for _ in range(N):
    h = int(eval(input()))
    H[_] = h


def calc(num, a):
    a -= num * B
    a = (a - 1) // (A - B) + 1
    if sum(a[a > 0]) <= num:
        return True
    else:
        return False


start = 0
end = 10**10
while end - start > 1:
    mid = (start + end) // 2
    if calc(mid, H.copy()):
        end = mid
    else:
        start = mid
print(end)

N, A, B = list(map(int, input().split()))
H = [int(eval(input())) for _ in range(N)]


def calc(num, a):
    cnt = 0
    for i, h in enumerate(a):
        x = h - num * B
        x = (x - 1) // (A - B) + 1
        if x > 0:
            cnt += x
    if cnt <= num:
        return True
    else:
        return False


start = 0
end = 10**10
while end - start > 1:
    mid = (start + end) // 2
    if calc(mid, H[:]):
        end = mid
    else:
        start = mid
print(end)

-import numpy as np - -H = np.zeros(shape=N, dtype="int64") -for _ in range(N): -    h = int(eval(input())) -    H[_] = h +H = [int(eval(input())) for _ in range(N)] -    a -= num * B -    a = (a - 1) // (A - B) + 1 -    if sum(a[a > 0]) <= num: +    cnt = 0 +    for i, h in enumerate(a): +        x = h - num * B +        x = (x - 1) // (A - B) + 1 +        if x > 0: +            cnt += x +    if cnt <= num: -    if calc(mid, H.copy()): +    if calc(mid, H[:]):