#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  while (scanf("%d", &n) != EOF) {
    unsigned long long int ans = (n + 3) * (n + 2) * (n + 1) / 6;
    cout << ans << endl;
  }
  return 0;
}
