#include <bits/stdc++.h>
using namespace std;
long long K, a, b, A, B, C, F[1005][1005];
double ans = 0;
template <typename T>
inline void RI(T &x) {
  x = 0;
  int f = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    f |= (c == '-');
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  if (f) x = -x;
}
inline long long Pow(long long x, long long z) {
  long long r = 1;
  while (z) {
    if (z & 1) r = r * x % 1000000007;
    x = x * x % 1000000007;
    z >>= 1;
  }
  return r;
}
int main() {
  RI(K);
  RI(a);
  RI(b);
  A = a * Pow(a + b, 1000000007 - 2) % 1000000007;
  B = b * Pow(a + b, 1000000007 - 2) % 1000000007;
  C = a * Pow(b, 1000000007 - 2) % 1000000007;
  for (long long i = K; i > 0; --i)
    for (long long j = K; j >= 0; --j) {
      if (i + j >= K)
        F[i][j] = (i + j + C) % 1000000007;
      else
        F[i][j] = (A * F[i + 1][j] + B * F[i][i + j]) % 1000000007;
    }
  printf("%lld", F[1][0]);
  return 0;
}
