#include using namespace std; using ll = long long; ll C(int m, int n){ ll now = 1; for(int i = 0; i < n; i++){ now = (now*(m-i))/(i+1); } return now; } int main(){ int x; cin >> x; if(x>31){ cout << 0 << " " << 0 << endl; return 0; }else{ ll ans1 = C(31, x); ll ans2 = 0; for(int i = 0; i <= 30; i++) ans2 += pow(2,i); ans2 *= C(30, x-1); cout << ans1 << " " << ans2 << endl; return 0; } }