#include using namespace std; #define ll long long int main(){ int x; cin >> x; if(x>31) cout << 0 << ' ' << 0 << endl; else if(x==0) cout << 1 << ' ' << 0 << endl; else{ ll num=1,sum=1; for(int i=0;i::max(); cout << num << ' ' << sum << endl; } return 0; }