n = int(input()) p = int(input()) if n >= 200: print(1) else: print(1-(1-p)**2)