#include <bits/stdc++.h>
using namespace std;
long long ans[] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292, 341};
int n;
int main() {
  scanf("%d", &n);
  if (n <= 12)
    printf("%lld\n", ans[n]);
  else
    printf("%lld\n", 341ll + 49ll * (n - 12));
  return 0;
}
