#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<vector<int>> dp(10, vector<int>(5000, 0));
  for (int i = 0; i < 4500; i++) dp[1][i] = 1;
  for (int i = 1; i < 3; i++)
    for (int j = 0; j < 4001; j++)
      for (int k = 0; k < 4001; k++) dp[i + i][j + k] += dp[i][k] * dp[i][j];
  int n;
  while (cin >> n) cout << dp[4][n] << endl;
}
