#include using namespace std; int main(){ double p,q; cin>>p>>q; double p1,p2; p1=(1-p)*q; p2=p*(1-q)*q; if(p1