#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
typedef long long ll;
int main(){
    int n,A[15]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47},B[20]={0},w=0,x=0,y=0,z=0;
    cin>>n;
    rep(i,15){
        int a=n;
        while(a>0) a=a/A[i],B[i]+=a;
    }
    rep(i,15) if(B[i]>=74) w++;
    rep(i,15)rep(j,15) if(B[i]>=2&&B[j]>=24&&i!=j) x++;
    rep(i,15)rep(j,15) if(B[i]>=4&&B[j]>=14&&i!=j) y++;
    rep(i,15)rep(j,15)rep(k,15) if(B[i]>=2&&B[j]>=4&&B[k]>=4&&i!=j&&j!=k&&k!=i) z++;
    cout<<w+x+y+z/2;
}