from numpy import*

t,*h=open(0)

_,a,b=int32(t.split())

i,j=0,2**30

while~i+j:

 k=(j+i)//2;t=(b*k-int32(h))//(a-b)

 if-k>sum(t[t<0]):i=k

 else:j=k

print(j)
from numpy import*

t,*h=open(0)

_,a,b=int32(t.split())

h=int32(h)

i,j=0,2**30

while~i+j:

  k=(j+i)//2

  t=(b*k-h)//(a-b)

  if-k>sum(t[t<0]):i=k

  else:j=k

print(j)
from numpy import *

t, *h = open(0)
_, a, b = int32(t.split())
i, j = 0, 2**30
while ~i + j:
    k = (j + i) // 2
    t = (b * k - int32(h)) // (a - b)
    if -k > sum(t[t < 0]):
        i = k
    else:
        j = k
print(j)

from numpy import *

t, *h = open(0)
_, a, b = int32(t.split())
h = int32(h)
i, j = 0, 2**30
while ~i + j:
    k = (j + i) // 2
    t = (b * k - h) // (a - b)
    if -k > sum(t[t < 0]):
        i = k
    else:
        j = k
print(j)

+h = int32(h) -    t = (b * k - int32(h)) // (a - b) +    t = (b * k - h) // (a - b)