fn main() { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); let n: Vec = s.split_whitespace().flat_map(str::parse).collect(); if n[2] % 2 == 0 { println!("{} {}", 0, n[3] / 2) } else { println!("{} {}", n[3] / 2, 0) } }