#include using namespace std; #define rep(i,n) for(int i = 0; i < (n); i++) typedef long long ll; typedef long double ld; typedef pair P; int main() { int n; cin >> n; if (__builtin_popcount(n) == 1) cout << "-1 -1 -1" << endl; else cout << n << " " << (n & (-n)) << " "<< (n ^ (n & (-n))) << endl; return 0; }