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