#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false);
  int n;
  cin >> n;
  int mem[15];
  set<int> s;
  s.insert(0);
  for (int i = 0; i < 15; i++) {
    set<int> tmp;
    for (auto it : s) {
      tmp.insert(it + 1);
      tmp.insert(it + 5);
      tmp.insert(it + 10);
      tmp.insert(it + 50);
    }
    s = tmp;
    mem[i] = s.size();
  }
  if (n <= 15) {
    cout << mem[n - 1] << endl;
  } else {
    n = n - 15;
    cout << (long long)mem[14] + (long long)n * (49LL) << endl;
  }
  return 0;
}
