#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <string>
#include <cassert>
#include <functional>

using namespace std;
typedef long long ll;


#define SIZE 26
#define INF 1000000000
#define LLINF 1000000000000000000LL

bool solve(){
  int n;

  if(scanf("%d", &n) == EOF) return false;

  // calc n+3_C_3

  ll ans = (ll)(n+3) * (n+2) * (n+1) / 6;

  printf("%lld\n",ans);
  
  return true;
}

int main(){
  
  while(solve());
  
  return 0;
}

