#include <iostream>
using namespace std;

int B[15], C[]={1, 3, 5, 15, 25, 75};
int se(int i, int key){
    if(i==14){
        if(key<=B[i]) return 1;
        else return 0;
    }
    else{
        int ret=0;
        for(int j=0; j<6; ++j){
            if(B[i]<C[j]) break;
            if(key%C[j]<1) ret += se(i+1, key/C[j]);
        }
        return ret;
    }
}
int main() {
	int N; cin >> N;
	int A[]={2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47};
	for(int i=0; i<15; ++i){
	    int p=N;
	    B[i]=1;
	    while(p>0){
	        B[i] += p/A[i];
	        p /= A[i];
	    }
	}
	cout << se(0, 75) << endl;
	return 0;
}
