#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair P; typedef bitset<16> BS; const ll MOD = 1E+09 + 7; const ll INF = 1E15; const int MAX_N = 1E+05; ll N; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin >> N; vector v; for (int i = 0; i <= 30; i++) { if ((N >> i) & 1) { v.push_back(i); } } ll A = -1, B = -1, C = -1; if (v.size() > 1) { A = 0, B = 0, C = 0; A += (1LL << v[0]), B += (1LL << v[0]); for (int i = 1; i < v.size(); i++) { B += (1LL << v[1]), C += (1LL << v[1]); } } /* for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { cout << "i = " << i << ", j = " << j << ", dp = " << dp[i][j] << "\n"; } } */ cout << A << " " << B << " " << C << "\n"; return 0; }