#include using namespace std; using i64 = int64_t; using vi = vector; using vvi = vector; int main() { int n; cin >> n; unordered_map cnt; for (int i = 0; i <= n; i++) { for (int j = 0; j <= n; j++) { for (int k = 0; k <= n; k++) { for (int l = 0; l <= n; l++) { cnt[6 * n - i - j - k - l]++; } } } } i64 ans = 0; for (auto& p: cnt) { if (cnt.count(6 * n - p.first)) { ans += p.second * cnt[6 * n - p.first]; } } cout << ans << endl; }