#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long int ans;
  while (cin >> n) {
    ans = (long long int)(n + 3) * (n + 2) * (n + 1) / 6;
    cout << ans << endl;
  }
  return 0;
}
