import java.util.Scanner; class Question159 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double p = scan.nextDouble(); double q = scan.nextDouble(); double p1,p2; p1 = (1-p)*q; p2 = (1-q)*q*p; System.out.println(p1