#include using namespace std; const int64_t inf = 1e18; const int64_t mod = 998244353; // const int64_t mod = 1000000007; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector ans(4, -1); if (__builtin_popcount(n) >= 2) { int cnt = 0; ans.assign(4, 0); for (int i = 0; i <= 30; i++) { if (n >> i & 1) { for (int j = 0; j < 3; j++) { if (j == cnt) continue; else ans[j] |= 1<