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