#include <bits/stdc++.h>
int main() {
  int m, n;
  for (; ~scanf("%d", &n);
       printf("%d\n", (n * n * n - n - 4 * m * m * m + 4 * m) / 6))
    n = n > 36 ? 0 : n > 18 ? 38 - n : n + 2, m = n > 11 ? n - 10 : 0;
}
