#include using namespace std; #define REP(i,n) for(int i=0;i ostream& operator<<(ostream& os,const vector& vec){ os << "["; for(const auto& v : vec){ os << v << ","; } os << "]"; return os; } typedef long long ll; typedef unsigned long long ull; typedef pair pii; typedef vector vi; typedef vector vvi; // use 31 bit int main(){ //cout << (1ll<<31) -1 << endl; ll x;cin>>x; if(x>31){ cout << "0 0" << endl; return 0; } ll ans1=1; ll r = min(x,(ll)31-x); for(int i=0;i