#include <bits/stdc++.h>
using namespace std;
int gcd(long long int m, long long int n) {
  while (m != n) {
    if (m > n) {
      m = m - n;
    } else
      n = n - m;
  }
  return m;
}
int lmc(long long int m, long long int n) { return m * n / gcd(m, n); }
int main() {
  int n;
  while (cin >> n) {
    long long int x;
    x = (n + 3) * (n + 1) * (n + 2) / 3 / 2;
    cout << x << endl;
  }
}
