fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let a: f64 = itr.next().unwrap().parse().unwrap(); let b: f64 = itr.next().unwrap().parse().unwrap(); let c: f64 = itr.next().unwrap().parse().unwrap(); let d: f64 = itr.next().unwrap().parse().unwrap(); let e: f64 = itr.next().unwrap().parse().unwrap(); let f: f64 = itr.next().unwrap().parse().unwrap(); println!("{}", ((c * c + d * d) / (4. * a * a) - e / a + f / a).sqrt()); }