#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 1000000009;
signed main() {
  long long n;
  while (cin >> n) {
    long long ans = 0;
    for (long long i = 0; i < n + 1; i++) {
      for (long long j = 0; j < n + 1; j++) {
        for (long long k = 0; k < n + 1; k++) {
          if (n - i - j - k >= 0) ans++;
        }
      }
    }
    cout << ans << endl;
  }
  return 0;
}
