using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NMi => ReadLine().Split().Select(c => int.Parse(c) - 1).ToArray(); static int[][] NMap(int n) => Enumerable.Repeat(0, n).Select(_ => NMi).ToArray(); public static void Main() { Solve(); } static void Solve() { var n = NN; var p = double.Parse(ReadLine()); if (n >= 200) { WriteLine(1); return; } var ans = 1.0; for (var i = 0; i < n; ++i) ans *= 1 - p; WriteLine(1 - ans); } }