#include using namespace std; int main(){ long long n;cin>>n; if(n&&n <= 31){ //31Cn long long a = 1; for(long long i = 1; n >= i; i++){ a*=(31LL-n+i); a/=i; } //30C(n-1) long long b = 2147483647LL; for(long long i = 1; n > i; i++){ b*=(30LL-n+i+1); b/=i; } cout << a << " " << b << endl; }else{ cout << 0 << " " << 0 << endl; } }