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