N=int(input()) P=float(input()) if 200 <= N: print(1) else: print(1-pow((1-P),N))