N, A, B, C = gets.chop.split.map(&:to_i)

def extgcd(a, b)
  if b.zero?
    {x: 1, y: 0, gcd: a}
  else
    prev = extgcd(b, a % b)
    {
      x: prev[:y],
      y: prev[:x] - (a / b) * prev[:y],
      gcd: prev[:gcd]
    }
  end
end

num = Rational(0,1)
(N..(2*N-1)).each do |i|
  comb_a = 1
  comb_b =1
  ((N+1)..i).each do |n|
    comb_a *= n
    comb_b *= n-N
  end
  comb = comb_a / comb_b

  a = A**N * (100-B)**(i-N)
  b = B**N * (100-A)**(i-N)
  num += Rational((a+b)*comb, 100**i)
end

mod_num = (10**9)+7
p extgcd(num.denominator, mod_num)[:x] * num.numerator
