def main(): n = int(input()) p = float(input()) ans = 1 if n >= 200 else 1 - (1 - p) ** n print(ans) if __name__ == "__main__": main()