#include <iostream>
 
int n;
int e[102];
 
size_t num(int m) {
	size_t out = 0;
	for (int i = 0; i < n; ++i)
		if (e[i] >= m - 1)
			++out;
	return out;
}
 
int main() {
	std::cin >> n;
	for (int i = 2; i < n + 1; ++i) {
		int cur = i;
		for (int j = 2; j < i + 1; ++j)
			while (cur%j == 0) {
				e[j] += 1;
				cur /= j;
			}
	}
 
	std::cout << num(75) + num(25) * (num(3) - 1) + num(15) * (num(5) - 1)
		+ num(5) * (num(5) - 1) * (num(3) - 2) / 2 << std::endl;
	return 0;
}