#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const double oula = 0.57721566490153286060651209;
using namespace std;
long long a[] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  std::ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  if (n <= 11)
    cout << a[n] << endl;
  else
    cout << a[11] + 49 * (n - 11);
}
