#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
long long n, m, a[5];
bitset<9000> dp[55];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cout.precision(30);
  cerr.precision(10);
  ;
  a[1] = 1, a[2] = 5, a[3] = 10, a[4] = 50;
  cin >> n;
  dp[0][0] = 1;
  for (int i = 1; i <= min(50LL, n); i++) {
    for (int k = 1; k <= 4; k++) dp[i] |= (dp[i - 1] << a[k]);
  }
  if (50 <= n) m = (dp[50].count() - dp[49].count());
  if (n <= 40)
    cout << dp[n].count();
  else
    cout << (n - 49) * m + dp[49].count();
  return 0;
}
