#include <bits/stdc++.h>
using namespace std;
int s3(int n) {
  int i, s;
  for (s = 0, i = 0; i <= n; i++) s += n + 1 - i;
  return s;
}
int main() {
  int i, n, s;
  while (cin >> n) {
    s = 0;
    for (i = 0; i <= n; i++) s += s3(n - i);
    cout << s << endl;
  }
  return 0;
}
