#include <bits/stdc++.h>
using namespace std;
int n, c[2001];
int main() {
  scanf("%d", &n);
  if (n > 11) {
    printf("%lld\n", 292 + (n - 11) * (long long)49);
    return 0;
  }
  for (int i = 0; i <= n; i++)
    for (int j = 0; j <= n; j++)
      for (int k = 0; k <= n; k++)
        for (int r = 0; r <= n; r++)
          if (i + j + k + r == n) c[i * 1 + j * 5 + k * 10 + r * 50]++;
  int cnt = 0;
  for (int i = 1; i <= 2000; i++) {
    if (c[i]) cnt++;
  }
  printf("%d\n", cnt);
  return 0;
}
