#include <bits/stdc++.h>
using namespace std;
#define INF 1<<30
#define endl '\n'
#define maxn 100005
#define tc printf("Case %d: ", cs)
#define tcn printf("Case %d:\n", cs);
#define FASTIO ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
typedef long long ll;
const double PI = acos(-1.0);
#define dbg(x) cerr << #x << " = " << x << endl;
#define dbg2(x, y) cerr << #x << " = " << x << ", " << #y << " = " << y << endl;
#define dbg3(x, y, z) cerr << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << endl;
#define dbg4(w,x, y, z) cerr << #w << " = " << w << ", " <<#x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << endl;

bool is_prime(int x)
{
	if (x == 2) {
		return true;
	}

	if (x % 2 == 0) {
		return false;
	}

	for (int i = 3; i * i <= x; i += 2) {
		if (x % i == 0) {
			return false;
		}
	}

	return true;
}

int num(int m, const unordered_map<int, int>& primes)
{
	return count_if(begin(primes), end(primes), [m](const auto & p) { return p.second >= m - 1; });
}


int main()
{
	FASTIO
	/*
	//double start_time = clock();
#ifndef ONLINE_JUDGE
	freopen("in.txt", "r", stdin);
	freopen("out.txt", "w", stdout);
	freopen("error.txt", "w", stderr);
#endif
//*/
	int T;
	//cin >> T;
	T = 1;
	for (int cs = 1; cs <= T; cs++) {
		int n;
		cin >> n;
		//dbg(n);
		unordered_map<int, int> primes;
		for (int i = 2; i <= 100; i ++) {
			if (is_prime(i)){
				primes[i] = 0;
				//dbg(i);
			}
		}

		for (int i = 1; i <= n; i++) {
			int x = i;
			for (auto && p : primes) {
				while (x % p.first == 0) {
					p.second++;
					x /= p.first;
					//dbg3(x, p.first, p.second);
				}
			}
		}




		int ans = 0;

		ans += num(75, primes);
		//dbg(ans);
		ans += num(25, primes) * (num(3,primes) - 1);
		//dbg(ans);
		ans += num(15, primes) * (num(5, primes) - 1);
		//dbg(ans);
		ans += num(5, primes) * (num(5,primes) - 1) * (num(3, primes) - 2)/2;
		//dbg(ans);
		cout << ans << endl;
	}

	//double end_time = clock();
	//printf( "Time = %lf ms\n", ( (end_time - start_time) / CLOCKS_PER_SEC)*1000);
	return 0;
}