#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int N; cin >> N; if(__builtin_popcount(N) == 1) { cout << "-1 -1 -1\n"; } int A = -1; rep(i,31) if(N & (1 << i)) { A = (1 << i); break; } int B = N ^ A, C = N; assert((A | B) == N); assert((B | C) == N); assert((C | A) == N); assert((A ^ B ^ C) == 0); cout << A << " " << B << " " << C << endl; }