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