#include <stdio.h> #include <bits/stdc++.h> using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000 int main(){ int N; cin>>N; int A = N; int B = 0,C = 0; bool f = true; rep(i,31){ if((N>>i)&1){ if(f)B |= 1<<i; else C |= 1<<i; f=false; } } if(C==0){ cout<<"-1 -1 -1"<<endl; } else{ cout<<A<<' '<<B<<' '<<C<<endl; } return 0; }