from math import ceil



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

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



A -= B  # 爆発は追加ダメージ扱いとする



# にぶたん

ok, ng = 10 ** 9, 0

while abs(ok - ng) > 1:

    X = (ok + ng) // 2



    h = [max(hi - B * X, 0) for hi in H]

    h = [ceil(hi / A) for hi in h]



    if sum(h) <= X:

        ok = X

    else:

        ng = X



print(ok)

from math import ceil

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

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

A -= B  # Aを追加ダメージ扱いにする





ok, ng = 10 ** 9, 0

while abs(ok - ng) > 1:

    X = (ok + ng) // 2

    H_damaged = [h - (B * X) for h in H if h - (B * X) > 0]

    Need = sum([ceil(h / A) for h in H_damaged])



    if X >= Need:

        ok = X

    else:

        ng = X



print(ok)

from math import ceil

N, A, B = list(map(int, input().split()))
H = [int(eval(input())) for i in range(N)]
A -= B  # 爆発は追加ダメージ扱いとする
# にぶたん
ok, ng = 10**9, 0
while abs(ok - ng) > 1:
    X = (ok + ng) // 2
    h = [max(hi - B * X, 0) for hi in H]
    h = [ceil(hi / A) for hi in h]
    if sum(h) <= X:
        ok = X
    else:
        ng = X
print(ok)

from math import ceil

N, A, B = list(map(int, input().split()))
H = [int(eval(input())) for i in range(N)]
A -= B  # Aを追加ダメージ扱いにする
ok, ng = 10**9, 0
while abs(ok - ng) > 1:
    X = (ok + ng) // 2
    H_damaged = [h - (B * X) for h in H if h - (B * X) > 0]
    Need = sum([ceil(h / A) for h in H_damaged])
    if X >= Need:
        ok = X
    else:
        ng = X
print(ok)

-A -= B  # 爆発は追加ダメージ扱いとする -# にぶたん +A -= B  # Aを追加ダメージ扱いにする -    h = [max(hi - B * X, 0) for hi in H] -    h = [ceil(hi / A) for hi in h] -    if sum(h) <= X: +    H_damaged = [h - (B * X) for h in H if h - (B * X) > 0] +    Need = sum([ceil(h / A) for h in H_damaged]) +    if X >= Need: