use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut a = s.split_whitespace().flat_map(str::parse::); let n = a.next().unwrap(); let k = a.sum::() / (n - 1) / 2 - n; println!("{} {}", n - k, k); }