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