#include "bits/stdc++.h" using namespace std; using ll = long long; signed main() { int N; cin >> N; int cnt = 0; for (int i = 0; i <= 30; i++) { if (N & (1 << i)) { cnt++; } } if (cnt == 1) { cout << -1 << " " << -1 << " " << -1 << endl; return 0; } int a = 0, b = 0; bool ok = false; for (int i = 0; i <= 30; i++) { if (N & (1 << i)) { if (!ok) { a += (1 << i); ok = true; } else { b += (1 << i); } } } cout << N << " " << a << " " << b << endl; }