#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cout << fixed << setprecision(15);
  long long N;
  cin >> N;
  vector<vector<array<long long, 2>>> ranges(49);
  for (int x = 0; x < 49; x++) {
    for (int v = 0; v < 49; v++) {
      if (x + v > N) continue;
      long long rmin = 1ll * (N - x - v) + 10 * x + 5 * v;
      long long rmax = 50ll * (N - x - v) + 10 * x + 5 * v;
      ranges[rmin % 49].push_back({rmin, rmax});
    }
  }
  long long ans = 0;
  for (int i = 0; i < 49; i++) {
    sort((ranges[i]).begin(), (ranges[i]).end());
    long long last = LLONG_MIN;
    for (auto p : ranges[i]) {
      long long rmin = max((long long)p[0], last + 49);
      long long rmax = p[1];
      if (rmin <= rmax) {
        ans += 1 + (rmax - rmin) / 49;
        last = rmax;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
