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