#include using namespace std; using ll = long long; template using vec = vector; template using vvec = vector>; template bool chmin(T& a,T b){if(a>b) {a = b; return true;} return false;} template bool chmax(T& a,T b){if(a=0;i--) #define all(x) (x).begin(),(x).end() #define debug(x) cerr << #x << " = " << (x) << endl; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; vec bit; rep(i,30) if(N>>i&1) bit.push_back(i); if(bit.size()<2){ cout << "-1 -1 -1\n"; return 0; } vec res(3); rep(i,bit.size()){ res[i%2] += 1<