#include using namespace std; int main() { int N; cin >> N; if( __builtin_popcount( N ) < 2 ) { cout << -1 << " " << -1 << " " << -1 << endl; } else { int a; for( int i = 0; 1 << i < N; i++ ) { if( 1 << i & N ) { a = 1 << i; break; } } cout << a << " " << (N ^ a) << " " << N << endl; } }