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 x = (c * e - f * d) / (a * e - b * d); let y = (c - a * x) / b; println!("{:.10} {:.10}", x, y); }