#include <bits/stdc++.h>
using namespace std;
bool solve() {
  int n;
  if (scanf("%d", &n) == EOF) return false;
  long long ans = (long long)(n + 3) * (n + 2) * (n + 1) / 6;
  printf("%lld\n", ans);
  return true;
}
int main() {
  while (solve())
    ;
  return 0;
}
