#include <bits/stdc++.h>
using namespace std;
map<int, bool> ma;
int main() {
  int n = 1, ans = 0;
  cin >> n;
  if (n >= 100) {
    cout << (long long)4653 + (long long)(n - 100) * 49 << endl;
    return 0;
  }
  for (long long a = 0; a <= n; a++) {
    for (long long b = 0; a + b <= n; b++) {
      for (long long c = 0; a + b + c <= n; c++) {
        int d = n - a - b - c;
        long long g = a + 5 * b + 10 * c + 50 * d;
        if (ma[g] == 0) {
          ma[g] = 1;
          ans++;
        }
      }
    }
  }
  cout << ans << endl;
  return 0;
}
