N=int(input()) p=float(input()) q=float(input()) P=p Q=q if P==1: ans=1 else: for _ in range(N-1): P,Q=P+p*Q**2/(1-P*p),Q*q/(1-P*p) ans=P print(ans)