#include <bits/stdc++.h>
int main(void) {
  int i, j, k, l;
  int n;
  int count;
  scanf("%d", &n);
  for (i = count = 0; i <= n; i++) {
    for (j = 0; j <= n; j++) {
      for (k = 0; k <= n; k++) {
        for (l = 0; l <= n; l++) {
          if (i + j + k + l == n) {
            count++;
          } else if (i + j + k + l > n) {
            break;
          }
        }
      }
    }
  }
  printf("%d\n", count);
  return (0);
}
