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