N = int(input()) P = float(input()) print(1 if N >= 200 else 1 - (1 - P) ** N)