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