#yuki813 n=int(input()) p=float(input()) q=float(input()) if p==1: print(1) exit() res=p for i in range(n-1): res=p+(q**2)*res/(1-p*res) print(res)