#include <bits/stdc++.h>
int main(void) {
  int n;
  while (scanf("%d", &n) != EOF) {
    int count = 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 (i + j + k + l == n) {
              count++;
            }
          }
        }
      }
    }
    printf("%d\n", count);
  }
  return 0;
}
