#include <iostream>

using namespace std;

int divs[101];
int nums[101];

int N;

int main () {

  cin >> N;
  for (int i = 2; i <= N; i++) {
    int k = i;
    int d = 2;
    while (k > 1) {
      if (k%d == 0) {
        divs[d]++;
        k /= d;
      } else d++;
    }
  }

  for (int i = 1; i <= 100; i++) divs[i] += 1;
  for (int i = 1; i <= N; i++) nums[divs[i]]++;
  for (int i = 100; i >= 1; i--) nums[i-1] += nums[i];

  int ans = 0;
  ans += nums[75];
  ans += nums[5]*(nums[5]-1)*(nums[3]-2) / 2;
  ans += nums[15] * (nums[5]-1);
  ans += nums[25] * (nums[3]-1);
  cout << ans << endl;

}
