#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; //#include long long int d[35][35] = {}; int main() { d[0][0] = 1; for (int i = 0; i < 33; i++) { for (int j = 0; j < 33; j++) { d[i + 1][j] += d[i][j]; d[i + 1][j + 1] += d[i][j]; } } int x; cin >> x; x = min(x, 32); cout << d[31][x] << " "; if (x == 0)cout << 0 << endl; else cout << d[30][x-1]*INT_MAX; return 0; }