#include #include #include #include //#include #include #include #include #include #include //#include #include #include #include //#include #include #include //#include #include #include #include #include const int dx[] = {1, 0, -1, 0}; const int dy[] = {0, 1, 0, -1}; using namespace std; typedef long long ll; typedef vector vi; typedef vector vll; typedef pair pii; ll dp[10][830]; int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; dp[0][0] = 1; for (int i = 0; i < 8; i++) { for (int j = 0; j <= 6*n; j++) { if (dp[i][j] == 0) continue; for (int k = 0; k <= n; k++) { dp[i+1][j+k] += dp[i][j]; } } } cout << dp[8][6*n] << endl; return 0; }