use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let p: f64 = itr.next().unwrap().parse().unwrap(); let q: f64 = itr.next().unwrap().parse().unwrap(); // p + q * n * logn let mut ng = 1e18; let mut ok = 1.0; for _ in 0..10000 { let mid = (ok + ng) / 2.0; if mid * mid <= p + q * mid * mid.log2() { ok = mid; } else { ng = mid; } } println!("{:.10}", ok); }