fun main(args: Array<String>) {
    val N = nextInt()
    val e = IntArray(N + 1)
    for (i in 2 .. N) {
        var cur = i
        for (j in 2 .. i) {
            while (cur % j == 0) {
                e[j] += 1
                cur /= j
            }
        }
    }
    fun num(m: Int) = e.reduce { acc, x -> acc + (if (x >= m - 1) 1 else 0) }
    val l75 = num(75)
    val l25 = num(25)
    val l15 = num(15)
    val l5 = num(5)
    val l3 = num(3)
    val r5x5x3 = (l5 * (l5 - 1) * (l3 - 2)) / 2
    val r15x5 = l15 * (l5 - 1)
    val r25x3 = l25 * (l3 - 1)
    val r75 = l75
    println(r75 + r25x3 + r15x5 + r5x5x3)
}
fun next() = readLine()!!
fun nextInt() = Integer.parseInt(next())
