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

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



def ok(x):

    t = 0

    for i in range(n):

        h = H[i]

        res = h-b*x

        if res <= 0:

            continue

        else:

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

                t += res//(a-b)

            else:

                t += res//(a-b)+1

    if t <= 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)]



def is_ok(x):

    cnt = 0

    for i in range(n):

        h  = H[i]

        if h <= x*b:

            continue

        else:

            h -= x*b

            cnt += (h+(a-b-1))//(a-b)

    if cnt <= x:

        return True

    else:

        return False



l = 0

r = 19**18

while l+1 < r:

    c = (l+r)//2

    if is_ok(c):

        r = c

    else:

        l = c

print(r)

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


def ok(x):
    t = 0
    for i in range(n):
        h = H[i]
        res = h - b * x
        if res <= 0:
            continue
        else:
            if res % (a - b) == 0:
                t += res // (a - b)
            else:
                t += res // (a - b) + 1
    if t <= 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)]


def is_ok(x):
    cnt = 0
    for i in range(n):
        h = H[i]
        if h <= x * b:
            continue
        else:
            h -= x * b
            cnt += (h + (a - b - 1)) // (a - b)
    if cnt <= x:
        return True
    else:
        return False


l = 0
r = 19**18
while l + 1 < r:
    c = (l + r) // 2
    if is_ok(c):
        r = c
    else:
        l = c
print(r)

-H = [int(eval(input())) for i in range(n)] +H = [int(eval(input())) for _ in range(n)] -def ok(x): -    t = 0 +def is_ok(x): +    cnt = 0 -        res = h - b * x -        if res <= 0: +        if h <= x * b: -            if res % (a - b) == 0: -                t += res // (a - b) -            else: -                t += res // (a - b) + 1 -    if t <= x: +            h -= x * b +            cnt += (h + (a - b - 1)) // (a - b) +    if cnt <= x: -r = 10**10 +r = 19**18 -    if ok(c): +    if is_ok(c):