p,q=(float (i) for i in input(). split ()) u=1-p P1=u*q P2=1-q P2*=p*q if P1