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