#include <bits/stdc++.h>
using namespace std;
#define rep(i, from, to) for (int i = from; i < to; i++)

int N;
int factor[101];
int func(int x)
{
  int res = 0;
  rep(i, 2, N + 1) if (factor[i] >= x) res++;
  return res;
}

int main()
{
  cin >> N;
  memset(factor, 0, sizeof(factor));
  rep(j, 2, N + 1)
  {
    int cur = j;
    for (int i = 2; i <= cur; i++)
    {
      while (cur % i == 0)
      {
        cur /= i;
        factor[i]++;
      }
    }
  }
  int ans = func(74) + func(24) * (func(2) - 1) + func(14) * (func(4) - 1) + func(4) * (func(4) - 1) * (func(2) - 2) / 2;
  cout << ans << endl;
  return 0;
}
