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