#include <bits/stdc++.h>
using namespace std;
int mn[50];
int main() {
  ios_base::sync_with_stdio(false);
  for (int i = 0; i <= 100; i++) {
    for (int j = 0; j <= 100; j++) {
      int calc = i + j;
      int tt = (i * 4 + j * 9) % 49;
      if (mn[tt] == 0 || mn[tt] > calc) {
        mn[tt] = calc;
      }
    }
  }
  mn[0] = 0;
  long long ans = 0;
  long long n;
  cin >> n;
  for (int i = 0; i <= 48; i++) {
    long long lp = n - mn[i];
    ans += max(0ll, lp);
    if (lp >= 0) {
      ans += 1;
    }
  }
  cout << ans << endl;
  return 0;
}
