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

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



import math

def ok(x):

    t = 0

    for i in range(n):

        r = h[i] - b*x

        if r < 0:

            continue

        else:

            t += math.ceil(r/(a-b))

    if t <= x:

        return True

    else:

        return False



l = 0

r = 10**14+1

while l+1 < r:

    c = (l+r)//2

    if ok(c):

        r = c

    else:

        l = c

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

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



def ok(x):

    tot = 0

    for i in range(n):

        if b*x >= H[i]:

            continue

        else:

            r = H[i] - b*x

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

                tot += r//(a-b)

            else:

                tot += r//(a-b)+1

    if tot <= x:

        return True

    else:

        return False



l = 0

r = 10**10

while l+1 < r:

    c = (l+r)//2

    if ok(c):

        r = c

    else:

        l = c

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


def ok(x):
    t = 0
    for i in range(n):
        r = h[i] - b * x
        if r < 0:
            continue
        else:
            t += math.ceil(r / (a - b))
    if t <= x:
        return True
    else:
        return False


l = 0
r = 10**14 + 1
while l + 1 < r:
    c = (l + r) // 2
    if ok(c):
        r = c
    else:
        l = c
print(r)

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


def ok(x):
    tot = 0
    for i in range(n):
        if b * x >= H[i]:
            continue
        else:
            r = H[i] - b * x
            if r % (a - b) == 0:
                tot += r // (a - b)
            else:
                tot += r // (a - b) + 1
    if tot <= x:
        return True
    else:
        return False


l = 0
r = 10**10
while l + 1 < r:
    c = (l + r) // 2
    if ok(c):
        r = c
    else:
        l = c
print(r)

-h = [int(eval(input())) for _ in range(n)] -import math +H = [int(eval(input())) for _ in range(n)] -    t = 0 +    tot = 0 -        r = h[i] - b * x -        if r < 0: +        if b * x >= H[i]: -            t += math.ceil(r / (a - b)) -    if t <= x: +            r = H[i] - b * x +            if r % (a - b) == 0: +                tot += r // (a - b) +            else: +                tot += r // (a - b) + 1 +    if tot <= x: -r = 10**14 + 1 +r = 10**10