#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; long long MOD = 1000000007; int main() { long long x; cin >> x; long long combination[31+1][31+1]; for ( int i = 0; i <= 31; i++ ) { for ( int j = 0; j <= i; j++ ) { if ( i == j || j == 0 ) { combination[i][j] = 1; } else { combination[i][j] = combination[i-1][j] + combination[i-1][j-1]; } } } if ( x > 31 ) { cout << 0 << " " << 0 << endl; } else if ( !x ) { cout << 1 << " " << 0 << endl; } else { cout << combination[31][x] << " " << combination[30][x-1] * 2147483647 << endl; } return 0; }