#include <bits/stdc++.h>
using namespace std;
short table[8][1024 * 4];
int main(void) {
  int n;
  for (int i = 0; i < 1024 * 8; i++) table[0][i] = 1;
  for (int i = 1; i < 4; i++) {
    for (int j = 0; j < 1024 * 4; j++) {
      table[i][j] = 0;
      for (int k = 0; k <= j; k++) {
        table[i][j] += table[i - 1][j - k];
      }
    }
  }
  while (cin >> n) {
    cout << table[3][n] << endl;
  }
}
