#include // #include using namespace std; // using namespace atcoder; using ll = long long; using ull = unsigned long long; using P = pair; #define rep(i,n) for(ll i = 0;i < (ll)n;i++) #define ALL(x) (x).begin(),(x).end() #define MOD 1000000007 int main(){ int n; cin >> n; int cnt = 0,last = 0; rep(i,30)if(n >> i & 1)cnt++,last = i; if(cnt == 1){ cout << "-1 -1 -1\n"; return 0; } cout << n << " "; cout << (1 << last) << " "; cout << ((1 << last) ^ n) << "\n"; return 0; }