#include "bits/stdc++.h" using namespace std; void solve() { int n; cin >> n; double p, q; cin >> p >> q; double np = p, nq = q; for (int i = 0; i < n - 1; i++) { double nnp, nnq; nnp = np + nq * nq * p / (1 - np * p); nnq = nq * q / (1 - np * p); np = nnp; nq = nnq; } cout << fixed << setprecision(9) << np << endl; } int main() { solve(); //cout << "yui(*-v・)yui" << endl; return 0; }