#include using namespace std; int main() { int N; cin >> N; int A = 0; int B = 0; int C = 0; int shift = 0; int cnt = 0; while(N > 0){ if(N % 2 == 1){ if(A == 0 && B == 0 || cnt >= 2){ A |= (1 << shift); B |= (1 << shift); cnt++; } else if(cnt == 1){ C |= (1 << shift); B |= (1 << shift); cnt++; } } N /= 2; // cout << N << " " << shift << endl; shift++; } if(A == 0 || B == 0 || C == 0){ cout << -1 << " " << -1 << " " << -1 << endl; } else cout << A << " " << B << " " << C << endl; }