#include #include using namespace std; using namespace atcoder; using ll = long long; using ld = long double; int N; int main() { cin >> N; if (N == (N & -N)) { cout << "-1 -1 -1" << endl; return 0; } int A = N, B = N & -N, C = N ^ B; cout << A << " " << B << " " << C << endl; return 0; }