import sys

S=sys.stdin.readlines()

N,A,B=list(map(int,S[0].split()))

H=[int(S[i+1]) for i in range(N)]

L,R=0,10**9

M=0

Z=0

A-=B

while R>L:

  M=(L+R)//2

  Z=0

  for i in range(N):

    Z+=max((H[i]-B*M+A-1)//A,0)

  if Z>M:

    L=max(L+1,M)

  else:

    R=M

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

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

L,R,M=0,10**9,0

A-=B

C=0

while L!=R:

  M=(L+R)//2

  C=0

  for i in range(N):

    C+=max(0,(H[i]-B*M+A-1)//A)

  if C>M:

    L=max(M,L+1)

  else:

    R=M

print(L)
import sys

S = sys.stdin.readlines()
N, A, B = list(map(int, S[0].split()))
H = [int(S[i + 1]) for i in range(N)]
L, R = 0, 10**9
M = 0
Z = 0
A -= B
while R > L:
    M = (L + R) // 2
    Z = 0
    for i in range(N):
        Z += max((H[i] - B * M + A - 1) // A, 0)
    if Z > M:
        L = max(L + 1, M)
    else:
        R = M
print(R)

N, A, B = list(map(int, input().split()))
H = [int(eval(input())) for i in range(N)]
L, R, M = 0, 10**9, 0
A -= B
C = 0
while L != R:
    M = (L + R) // 2
    C = 0
    for i in range(N):
        C += max(0, (H[i] - B * M + A - 1) // A)
    if C > M:
        L = max(M, L + 1)
    else:
        R = M
print(L)

-import sys - -S = sys.stdin.readlines() -N, A, B = list(map(int, S[0].split())) -H = [int(S[i + 1]) for i in range(N)] -L, R = 0, 10**9 -M = 0 -Z = 0 +N, A, B = list(map(int, input().split())) +H = [int(eval(input())) for i in range(N)] +L, R, M = 0, 10**9, 0 -while R > L: +C = 0 +while L != R: -    Z = 0 +    C = 0 -        Z += max((H[i] - B * M + A - 1) // A, 0) -    if Z > M: -        L = max(L + 1, M) +        C += max(0, (H[i] - B * M + A - 1) // A) +    if C > M: +        L = max(M, L + 1) -print(R) +print(L)