#include #include #include using namespace atcoder; using mint = modint1000000007; using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) #define Inf 1000000001 int main(){ long long aa; cin>>aa; vector a,b; a.push_back(0); b.push_back(1); rep(i,39){ int x = 1 + i; int y = 41 + i; rep(j,2){ rep(k,2){ int z = x; if(j==1)z = y; int w = 2 + i; if(k==1)w += 40; a.push_back(z); b.push_back(w); } } } for(int i=80;i<=120;i++){ a.push_back(i); b.push_back(i+1); } rep(i,40){ if((aa>>i)&1){ a.push_back(41 + i); b.push_back(81 + i + 1); a.push_back(1 + i); b.push_back(81 + i + 1); } } cout<<122<<' '<