#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> N >> P; double ans = 1.0; if(N < 200){ ans -= pow((1.0 - P), N); } printf("%.28f\n", ans); return 0; }