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