fun main(args:Array<String>) {
	val n = readLine()!!.toInt()
	val c = IntArray(n+1)
	for(i in 2..n){
		primeFact(i).forEach {c[it]++}
	}
	
	var ans = 0
	ans += c.count{it>=74}
	ans += c.count{it>=24} * (c.count{it>=2}-1)
	ans += c.count{it>=14} * (c.count{it>=4}-1)
	ans += c.count{it>=4} * (c.count{it>=4}-1)/2 * (c.count{it>=2}-2)
	println(ans)
}

fun primeFact(a:Int):List<Int>{
	val primes= mutableListOf<Int>()
	var x=a
	val rtx=Math.sqrt(x.toDouble()).toInt()
	for(p in 2..a){
		if(x==1 || p>rtx && primes.isEmpty())break
		while(x%p==0){
			primes.add(p)
			x/=p
		}
	}
	if(primes.isEmpty()) primes.add(a)
	return primes
}