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