#include <bits/stdc++.h>

using namespace std;

#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)

map<int,int> mp;

void factor(int x) {
  for (int i = 2; i * i <= x; i++) {
    while (x % i == 0) {
      x /= i;
      mp[i]++;
    }
  }
  if (x > 1) mp[x]++;
}

int main() {
  int i,N;

  cin >> N;
  REP(i,N+1) factor(i);

  int four = 0, two = 0, fteen = 0, tfour = 0, sfour = 0;
  for (auto a : mp) {
    if (a.second >= 2) two++;
    if (a.second >= 4) four++;
    if (a.second >= 14) fteen++;
    if (a.second >= 24) tfour++;
    if (a.second >= 74) sfour++;
  }

  int w = ((four * (four - 1)) / 2) * (two - 2);
  int x = tfour * (two - 1);
  int y = fteen * (four - 1);
  int z = sfour;

  cout << (w + x + y + z) << endl;

  return 0;
}

