fn main() { let (a, b, c, d, e, f): (f64, f64, f64, f64, f64, f64) = { let mut buf = String::new(); std::io::stdin().read_line(&mut buf).unwrap(); let mut iter = buf.split_whitespace(); ( iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), iter.next().unwrap().parse().unwrap(), ) }; let r = ((f - e + (c / (2.0 * a)).powi(2) + (d / (2.0 * b)).powi(2)) / a).sqrt(); println!("{:.10}", r); }