M=10**9+7

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

f=[1]

for i in range(1,2*N):

	f.append(f[-1]*i%M)

t=pow(A+B,M-2,M)

A*=t

B*=t

a=pow(A,N,M)

b=pow(B,N,M)

z=0

for i in range(N):

	z+=(N+i)*100*pow(100-C,M-2,M)*f[N+i-1]*pow(f[N-1]*f[i],M-2,M)*(a+b)

	z%=M

	a=a*B%M

	b=b*A%M

print(z)

M=10**9+7

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

f=[1]

for i in range(1,2*N):

	f.append(f[-1]*i%M)

t=pow(A+B,M-2,M)

A*=t

B*=t

a=pow(A,N,M)

b=pow(B,N,M)

z=0

for i in range(N):

	z+=(N+i)*100*t*f[N+i-1]*pow(f[N-1]*f[i],M-2,M)*(a+b)

	z%=M

	a=a*B%M

	b=b*A%M

print(z)

M = 10**9 + 7
N, A, B, C = list(map(int, input().split()))
f = [1]
for i in range(1, 2 * N):
    f.append(f[-1] * i % M)
t = pow(A + B, M - 2, M)
A *= t
B *= t
a = pow(A, N, M)
b = pow(B, N, M)
z = 0
for i in range(N):
    z += (
        (N + i)
        * 100
        * pow(100 - C, M - 2, M)
        * f[N + i - 1]
        * pow(f[N - 1] * f[i], M - 2, M)
        * (a + b)
    )
    z %= M
    a = a * B % M
    b = b * A % M
print(z)

M = 10**9 + 7
N, A, B, C = list(map(int, input().split()))
f = [1]
for i in range(1, 2 * N):
    f.append(f[-1] * i % M)
t = pow(A + B, M - 2, M)
A *= t
B *= t
a = pow(A, N, M)
b = pow(B, N, M)
z = 0
for i in range(N):
    z += (N + i) * 100 * t * f[N + i - 1] * pow(f[N - 1] * f[i], M - 2, M) * (a + b)
    z %= M
    a = a * B % M
    b = b * A % M
print(z)

-    z += ( -        (N + i) -        * 100 -        * pow(100 - C, M - 2, M) -        * f[N + i - 1] -        * pow(f[N - 1] * f[i], M - 2, M) -        * (a + b) -    ) +    z += (N + i) * 100 * t * f[N + i - 1] * pow(f[N - 1] * f[i], M - 2, M) * (a + b)