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 = 0; double right = Math.sqrt(Double.MAX_VALUE); for (int i = 0; i < 1000000; i++) { double m = (left + right) / 2; if (m * m <= p + q * m * Math.log(m) / Math.log(2)) { left = m; } else { right = m; } } System.out.println(new java.math.BigDecimal(left).toPlainString()); } }