N = int(input()) p = float(input()) q = float(input()) ans = p for i in range(N-1): ans = p + (q**2) * ans/(1-p*ans) print(ans)