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