#include using namespace std; #define int long long typedef pair P; int INF = 3e18+7; int mod = 1e9+7; int dx[] = {1, 0,-1, 0, 1, 1,-1,-1}; int dy[] = {0, 1, 0,-1, 1,-1, 1,-1}; signed main() { int N; cin >> N; for(int i = 0; i < 30; i++) { if(1 & (N >> i)) { if(N == (1 << i)) { cout << -1 << " " << -1 << " " << -1 << endl; return 0; } else { cout << N << " " << (1 << i) << " " << (N^(1 << i)) << endl; } } } }