#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:167772160000")
using namespace std;
void redirectIO() {
  ios::sync_with_stdio(false);
  cin.tie(0);
}
vector<pair<long long, long long> > haveIntervals[50];
long long answer;
int main() {
  redirectIO();
  long long n;
  cin >> n;
  for (long long v = 0; v <= 9; v++)
    for (long long x = 0; x <= 9; x++) {
      long long haveSum = v * 5 + x * 10;
      long long lleft = n - v - x;
      if (lleft < 0) continue;
      haveSum += lleft;
      long long modul = haveSum % 49;
      haveSum -= modul;
      haveSum /= 49;
      long long minVal = haveSum;
      long long maxVal = haveSum + lleft;
      haveIntervals[modul].push_back(make_pair(minVal, maxVal));
    }
  for (int i = 0; i < (50); i++) {
    vector<pair<long long, long long> > cur = haveIntervals[i];
    long long prev = -1;
    sort(cur.begin(), cur.end());
    for (auto x : cur) {
      if (x.second < prev) x.second = prev;
      if (prev < x.first) prev = x.first - 1;
      answer += x.second - prev;
      prev = x.second;
    }
  }
  cout << answer << endl;
  return 0;
}
