#include <bits/stdc++.h>
using namespace std;
int num, count;
int main() {
  while (cin >> num) {
    ::count = 0;
    for (int a = 0; a < num + 1; a++) {
      for (int b = 0; b < num + 1; b++) {
        for (int c = 0; c < num + 1; c++) {
          for (int d = 0; d < num + 1; d++) {
            if (a + d + c + b == num) {
              ::count++;
            }
          }
        }
      }
    }
    cout << ::count << endl;
  }
}
