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 = Math.pow(10, 9); while(left < right) { double mid = left + (right - left) / 2; double res1 = mid * mid; double res2 = p + q * mid * Math.log(mid) / Math.log(2); if(res1 == res2) break; if(res1 < res2) left = mid; else right = mid; } System.out.println(right); } }