#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int n; cin >> n; if (has_single_bit(ull(n))) { cout << -1 << endl; return 0; } int a = n; int b = n ^ bit_floor(ull(n)); int c = bit_floor(ull(n)); assert((a | b) == (b | c) && (b | c) == (c | a) && (c | a) == n); assert((a ^ b ^ c) == 0); printf("%d %d %d\n", a, b, c); return 0; }