#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; #define rep2(i,m,n) for (int i = (m); i < (n); ++i) #define rep(i,n) rep2(i,0,n) typedef long long int ll; typedef long double ld; template<typename T> struct V : vector<T> { using vector<T>::vector; }; V() -> V<int>; V(size_t) -> V<int>; template<typename T> V(size_t, T) -> V<T>; template<typename T> vector<T> make_vec(size_t n, T a) { return vector<T>(n, a); } template<typename... Ts> auto make_vec(size_t n, Ts... ts) { return vector<decltype(make_vec(ts...))>(n, make_vec(ts...)); } template<typename T> ostream &operator<<(ostream &os, const vector<T> &v) { for (auto &e : v) os << e << ' '; return os; } struct fast_ios { fast_ios(){ cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(20); }; } fast_ios_; template<typename T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template<typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } const int INF = 1<<30; const ll LINF = 1LL<<61; // const ll MOD = 1000000007; const ll MOD = 998244353; using mint = modint1000000007; using P = pair<ll, ll>; int main() { int n; cin >> n; int a = n, b = 0; rep(i,30) { if((a >> i) & 1) { a &= ~(1 << i); b |= (1 << i); break; } } if(a == 0 || b == 0) cout << "-1 -1 -1" << endl; else cout << n << " " << a << " " << b << endl; return 0; }