#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  while (cin >> n) {
    int cnt = 0;
    for (int i = 0; i <= n; i++) {
      for (int j = 0; j <= n; j++) {
        for (int k = 0; k <= n; k++) {
          for (int l = 0; l <= n; l++) {
            if (n == i + j + k + l) cnt++;
          }
        }
      }
    }
    cout << cnt << endl;
  }
}
