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 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 = (a - c) * (a - c) - 8.0 * (b - d); if e < 0.0 { println!("No"); } else if e == 0.0 { println!("Yes"); } else { let x1 = (c - a - e.sqrt()) / 4.0; let x2 = (c - a + e.sqrt()) / 4.0; let y1 = x1 * x1 + a * x1 + b; let y2 = -1.0 * x2 * x2 + c * x2 + d; let p = (y2 - y1) / (x2 - x1); let q = y2 - x2 * p; println!("{:.10} {:.10}", p, q); } }