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