#include using namespace std; #define rep(i,n) for (int i=0; i<(n); i++) using ll = long long; using P = pair; using vi = vector; using vvi = vector; using Graph = vvi; int main(){ int n; cin >> n; if(n==(n&-n)){ cout << "-1 -1 -1" << endl; return 0; } int c=n; int b=n&-n; int a=n^b; cout << a << " " << b << " " << c << endl; }