using System; using System.Collections.Generic; using System.ComponentModel; namespace ConsoleApp2 { class Program { static void Main(string[] args) { Int32 n = Int32.Parse(Console.ReadLine()); Int32 pt = 1; var st = new HashSet(); st.Add(pt); for (Int32 i = 0; i < 30; i++) { pt *= 2; st.Add(pt); } if (st.Contains(n)) { Console.WriteLine("-1 -1 -1"); } else { var a = n; var bit = new List(); while (n != 0) { bit.Add(n % 2); n /= 2; } pt = 1; for (Int32 i = 0; i < bit.Count; i++) { if (bit[i] == 1) { break; } pt *= 2; } Console.Write(a); Console.Write(" "); Console.Write(pt); Console.Write(" "); Console.WriteLine(a - pt); } } } }