#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a vector make_v(size_t a){return vector(a);} template auto make_v(size_t a,Ts... ts){ return vector(ts...))>(a,make_v(ts...)); } template typename enable_if::value!=0>::type fill_v(U &u,const V... v){u=U(v...);} template typename enable_if::value==0>::type fill_v(U &u,const V... v){ for(auto &e:u) fill_v(e,v...); } //INSERT ABOVE HERE signed main(){ Int n; cin>>n; using D = long double; D p,q; cin>>p>>q; auto dp=make_v(3,n+2); fill_v(dp,0); dp[1+1][1]=1; D ans=0; for(Int uku=0;uku<1000;uku++){ auto nx=make_v(3,n+2); fill_v(nx,0); for(Int v=1;v<=n;v++){ for(Int d=-1;d<=1;d+=2){ D x=dp[1+d][v]; if(v+d==0) ans+=x*q; if(0