import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int q = sc.nextInt(); double left = 1.0, right = Double.MAX_VALUE; while(right - left > 10e-6) { double mid = left + (right - left) / 2; double res1 = mid * mid; double res2 = p + q * mid * Math.log(mid) / Math.log(2); if(res1 < res2) left = mid; else right = mid; } System.out.println(right); } }