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 n: usize = itr.next().unwrap().parse().unwrap(); for i in 1..n { if i & (i - 1) == 0 { continue; } else { if (n - i) & (n - i - 1) != 0 { println!("{} {}", i, n - i); return; } } } println!("-1"); }