#include using namespace std; int main() { int n,a,b,c,cnt; bool frag = true; cin >> n; a = b = cnt = 0; c = n; while( n > 0 ) { int d = n%2; if(frag) { a += d*(int)pow(2,cnt); frag = false; }else { b = d*(int)pow(2,cnt); } cnt++; n /= 2; } if( b == 0 ) a = b = c = -1; cout << a << " " << b << " " << c << endl; }