#include <bits/stdc++.h>
using namespace std;
int n;
long long ans;
int main() {
  scanf("%d", &n);
  for (register int i = 0; i <= 8 && i <= n; ++i)
    for (register int j = 0; j <= (i == 0 ? 8 : 4) && j + i <= n; ++j)
      ans += n - i - j + 1;
  printf("%lld\n", ans);
  return 0;
}
