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