#[macro_export] macro_rules! setup { { mut $input:ident: SplitWhitespace $(,)? } => { use std::io::Read; let mut buf = String::new(); std::io::stdin().read_to_string(&mut buf).ok(); let mut $input = buf.split_whitespace(); }; } #[macro_export] macro_rules! parse_next { ($str_iter:expr) => { $str_iter.next().unwrap().parse().ok().unwrap() }; } fn main() { setup! { mut input: SplitWhitespace }; let n: usize = parse_next!(input); let digits = { let mut c = 0; let mut n = n; while n > 0 { c += 1; n >>= 1; } c as usize }; let ans = (|| { let a = 1 << (digits - 1); let b = n ^ a; let c = n; match b { 0 => format!("{} {} {}", -1, -1, -1), _ => format!("{} {} {}", a, b, c), } })(); println!("{}", ans); }