fun main(args: Array<String>) {
    val a = IntArray(50) { 0 }
    (2..readLine()!!.toInt()).forEach {
        var n = it
        for (i in 2..47) {
            while (n % i == 0) {
                a[i]++
                n /= i
            }
            if (n == 1) break
        }
    }
    val b = a.filter { it > 1 }
    var count = 0
    for (i in 0 until b.size) {
        if (b[i] >= 74) count++
        for (j in 0 until b.size) {
            if (i == j) continue
            if (b[i] >= 2 && b[j] >= 24) count++
            if (b[i] >= 4 && b[j] >= 14) count++
            for (k in j + 1 until b.size) {
                if (j == k || k == i) continue
                if (b[i] >= 2 && b[j] >= 4 && b[k] >= 4) count++
            }
        }
    }
    print(count)
}