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