#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  ll n;cin>>n;
  vector<ll>a(101);
  for(ll i=0;i<=100;i++)a[i]=0;
  for(ll i=2;i<=n;i++){
    ll m=i;
    for(ll j=2;j<=i;j++){
      for(;;){
        if(m%j!=0){
          //cout<<j<<endl;
          break;
        }
        a[j]++;
        m=m/j;
      }
    }
  }
  //cout<<a[2]<<" "<<a[3]<<endl;
  ll f[101];
  for(ll i=0;i<=100;i++)f[i]=0;
  for(ll i=2;i<=n;i++){
    if(a[i]>=4)f[4]++;
    if(a[i]>=2)f[2]++;
    if(a[i]>=14)f[14]++;
    if(a[i]>=24)f[24]++;
    if(a[i]>=74)f[74]++;
  }
  //cout<<f[2]<<f[4]<<endl;
  ll ans=0;
  ans+=((f[4]*(f[4]-1))/2)*(f[2]-2);
  ans+=(f[4]-1)*(f[14]);
  ans+=(f[24])*(f[2]-1);
  ans+=f[74];
  cout<<ans<<endl;
}