n=int(input()) p=float(input()) q=float(input()) ans=p if q==0: print(p) elif p==0: print(0) else: coef1=p/(1-p**2) coef2=q*(1-pow(q**2,n-1))/(1-q**2) ans+=q*coef1*coef2 print(ans)