import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { double p = sc.nextDouble(); double q = sc.nextDouble(); double f = 1; if((1.0-p)*q