#include<iostream>
#include<vector>
using namespace std;
#define repn(i,n) for(int i=1; i<=n; i++)
int main(){
int N; cin>>N;
vector<int> prime = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47};
int c[5] = {}; // 74, 24, 14, 4, 2
for(auto& p : prime){
int k = N/p; int cnt = 0;
while(k!=0){
cnt+=k;
k = k / p;
}
if(cnt>=74) c[0]++;
else if(cnt>=24) c[1]++;
else if(cnt>=14) c[2]++;
else if(cnt>=4) c[3]++;
else if(cnt>=2) c[4]++;
}
repn(i, 4) c[i]+=c[i-1];
int ans = c[0] + c[1]*(c[4]-1) + c[2]*(c[3]-1) + c[3]*(c[3]-1)*(c[4]-2)/2;
cout<<ans<<endl;
}
