#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  while (true) {
    cin >> n;
    if (cin.eof()) {
      break;
    }
    printf("%lld\n", (n + 1) * (n + 2) * (n + 3) / 6);
  }
  return 0;
}
