#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<long long> v = {4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
  long long n;
  cin >> n;
  if (n < 12)
    cout << v[n - 1];
  else
    cout << 292 + 49 * (n - 11);
  return 0;
}
