#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ double P,Q,p1=0,p,p_,p1_=0,p2=0,p2_=0,s; cin>>P>>Q; p = P*Q; p_ = (1-P)*(1-Q); p1 = (1-p_)*P*Q; p1_ = (1-p)*(1-P)*(1-Q); p2 = (1-p1_)*P*Q; p2_ = (1-p1)*(1-P)*(1-Q); if(p1+p1_