#include using namespace std; typedef vector vi; typedef vector vvi; typedef vector vs; typedef vector vb; typedef vector vvb; typedef pair pii; typedef long long ll; typedef unsigned long long ull; #define all(a) (a).begin(),(a).end() #define rall(a) (a).rbegin(), (a).rend() #define pb push_back #define mp make_pair #define loop(i,a,b) for(ull i=(a);i> p >> q; double p1,p2; p1=(1-p)*q; p2=p*q*(1-q); if(p1