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