#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  set<long long> s;
  long long extra = max(n - 11, 0LL);
  n = min(n, 11LL);
  long long rep = 0;
  for (long long i = 0; i <= n; i++) {
    for (long long j = 0; i + j <= n; j++) {
      for (long long k = 0; i + j + k <= n; k++) {
        long long l = n - i - j - k;
        s.insert(i * 1 + j * 5 + k * 10 + l * 50);
      }
    }
  }
  long long ans = s.size() + extra * 49;
  cout << ans;
}
