#include #include using namespace std; int N; double p,q; main() { cin>>N>>p>>q; double now=p; for(int i=N-1;i--;) { now=p+(now*p>1-1e-10?0:q*q*now/(1-now*p)); } cout<