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