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