#include <iostream>
#include <string>
#define REP(i,n) for(int i=0;i<(n);++i)
using namespace std;

int main(){
  int N;
  cin >> N;
  
  //factorize N!
  int fac[100] = {};
  int p[4] = {2, 3, 5, 7};
  for(int i=1; i <=N; ++i) {
    int t = i;
    REP(j, 4) {
      int tp = p[j];
      while(t%tp==0) {
        fac[tp]++;
        t/=tp;
      }
    }
    if(t!=1) fac[t]++;
  }
  
  int cf[100] = {};
  REP(i, 100) {
    if(fac[i] > 100) fac[i] = 100;
    cf[fac[i]]++;
  }
  for(int i=100; i>0; --i) {
    cf[i-1] += cf[i];
  }
  
  int r = 0;
  //A: x^4y^4z^2
  r += cf[4] * (cf[4]-1) * (cf[2]-2) / 2;
  //B: x^14y^4
  r += cf[14] * (cf[4]-1);
  //C: x^24y^2
  r += cf[24] * (cf[2]-1);
  //D: x^74
  r += cf[74];
  cout << r << endl;
}