#include <bits/stdc++.h>
const int maxn = 1e5 + 10;
using namespace std;
int cal(int n) {
  set<int> st;
  for (int a = 0; a <= n; a++) {
    for (int b = 0; a + b <= n; b++) {
      for (int c = 0; a + b + c <= n; c++) {
        st.insert(a + b * 5 + c * 10 + (n - a - b - c) * 50);
      }
    }
  }
  return st.size();
}
int main() {
  ios::sync_with_stdio(0);
  long long n;
  cin >> n;
  if (n <= 12)
    cout << cal(n) << endl;
  else
    cout << (n - 12) * 49 + 341 << endl;
  return 0;
}
