#include using namespace std; const int N=1e6 + 10; double a[N]; int main(){ int n; double p; cin >> n >> p; a[0] = a[1] = 0; for(int i=2;i