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