use std::io::prelude::*; fn input(stdin: &mut R) -> String { let mut input = String::new(); stdin.read_line(&mut input).ok(); input } macro_rules! read { ($stdin:expr, [$t:tt; $n:expr]) => { (0..$n).map(|_| read!($stdin, $t)).collect::>() }; ($stdin:expr, [$t:tt]) => { input($stdin).split_whitespace().map(|s| parse!(s, $t)).collect::>() }; ($stdin:expr, ($($t:tt),*)) => {{ let input = input($stdin); let mut iter = input.split_whitespace(); ($(parse!(iter.next().unwrap(), $t)),*) }}; ($stdin:expr, $t:tt) => { parse!(input($stdin).trim(), $t) }; } macro_rules! parse { ($s:expr, Chars) => ($s.chars().collect::>()); ($s:expr, Usize1) => (parse!($s, usize) - 1); ($s:expr, $t:ty) => ($s.parse::<$t>().unwrap()); } fn solve(stdin: &mut R, writer: &mut W) { let n = read!(stdin, u32); let x = 1 << 31 - n.leading_zeros(); if n == x { writeln!(writer, "-1 -1 -1").ok(); } else { writeln!(writer, "{} {} {}", n, x, n - x).ok(); } } fn main() { let stdin = std::io::stdin(); let stdin = &mut stdin.lock(); let stdout = std::io::stdout(); let writer = &mut std::io::BufWriter::new(stdout.lock()); solve(stdin, writer); }