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