import math



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

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



add_damage = A-B

left = 1

right = 10**9

ans = float('inf')



for i in range(int(math.log(10**9, 2)+1)):

    T = (left+right) // 2

    h = H.copy()

    h = list([max(0, x-T*B) for x in h])

    h = list([math.ceil(x / add_damage) for x in h])

    need = sum(h)

    

    if need <= T:

        right = T

        ans = min(ans, T)

    else:

        left = T



print((int(ans)))
import math



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

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



add_damage = A-B

left = 1

right = 10**9

ans = float('inf')



for i in range(int(math.log(10**9, 2)+1)):

    T = (left+right) // 2

    h = H.copy()

    h = list([math.ceil(max(0, x-T*B) / add_damage) for x in h])

    need = sum(h)

    

    if need <= T:

        right = T

        ans = min(ans, T)

    else:

        left = T



print(ans)
import math

N, A, B = list(map(int, input().split()))
H = [int(eval(input())) for i in range(N)]
add_damage = A - B
left = 1
right = 10**9
ans = float("inf")
for i in range(int(math.log(10**9, 2) + 1)):
    T = (left + right) // 2
    h = H.copy()
    h = list([max(0, x - T * B) for x in h])
    h = list([math.ceil(x / add_damage) for x in h])
    need = sum(h)
    if need <= T:
        right = T
        ans = min(ans, T)
    else:
        left = T
print((int(ans)))

import math

N, A, B = list(map(int, input().split()))
H = [int(eval(input())) for i in range(N)]
add_damage = A - B
left = 1
right = 10**9
ans = float("inf")
for i in range(int(math.log(10**9, 2) + 1)):
    T = (left + right) // 2
    h = H.copy()
    h = list([math.ceil(max(0, x - T * B) / add_damage) for x in h])
    need = sum(h)
    if need <= T:
        right = T
        ans = min(ans, T)
    else:
        left = T
print(ans)

-    h = list([max(0, x - T * B) for x in h]) -    h = list([math.ceil(x / add_damage) for x in h]) +    h = list([math.ceil(max(0, x - T * B) / add_damage) for x in h]) -print((int(ans))) +print(ans)