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

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

l=1;r=max(h)//b+1

while l!=r:

  x=(l+r)//2

  ct=0

  for i in range(n):

    ct+=((a-b-1)+max(0,h[i]-b*x))//(a-b)

  if ct>x:

    l=x+1

  else:

    r=x

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

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

l=0;r=max(h)//b+1

while abs(l-r)>1:

  x=(l+r)//2

  ct=0

  for i in range(n):

    ct+=((a-b-1)+max(0,h[i]-b*x))//(a-b)

  if ct<=x:

    r=x

  else:

    l=x

print(r)
n, a, b = list(map(int, input().split()))
h = [int(eval(input())) for i in range(n)]
l = 1
r = max(h) // b + 1
while l != r:
    x = (l + r) // 2
    ct = 0
    for i in range(n):
        ct += ((a - b - 1) + max(0, h[i] - b * x)) // (a - b)
    if ct > x:
        l = x + 1
    else:
        r = x
print(l)

n, a, b = list(map(int, input().split()))
h = [int(eval(input())) for i in range(n)]
l = 0
r = max(h) // b + 1
while abs(l - r) > 1:
    x = (l + r) // 2
    ct = 0
    for i in range(n):
        ct += ((a - b - 1) + max(0, h[i] - b * x)) // (a - b)
    if ct <= x:
        r = x
    else:
        l = x
print(r)

-l = 1 +l = 0 -while l != r: +while abs(l - r) > 1: -    if ct > x: -        l = x + 1 +    if ct <= x: +        r = x -        r = x -print(l) +        l = x +print(r)