import math

dic = {}

N = int(eval(input()))

for i in range(2, N+1):

    fact = []

    while i % 2 == 0:

        fact.append(2)

        i //= 2

    f = 3

    while f*f <= i:

        if i%f == 0:

            fact.append(f)

            i //= f

        else:

            f += 2

    if i != 1:

        fact.append(i)

    for j in fact:

        if j in dic:

            dic[j] += 1

        else:

            dic[j] = 1

cnt = 0

s1 = len([k for k, v in list(dic.items()) if v >= 2])

s2 = len([k for k, v in list(dic.items()) if v >= 4])

s3 = len([k for k, v in list(dic.items()) if v >= 14])

s4 = len([k for k, v in list(dic.items()) if v >= 24])

s5 = len([k for k, v in list(dic.items()) if v >= 74])



#3*5*5

if s2 >= 2 and s1 >= 3:

    cnt += s2*(s2-1)/2*(s1-2)

#15*5

if s3 >= 1:

    cnt += s3*(s2-1)

#25*3

if s4 >= 1:

    cnt += s4*(s1-1)

#75

if s5 >= 1:

    cnt += s5

print((int(cnt)))
N = int(eval(input()))

e = [0]*(N+1)

for i in range(2, N+1):

    cur = i

    for j in range(2, i+1):

        while cur % j == 0:

            e[j] += 1

            cur //= j

def num(m):

    return len(list([x for x in e if x >= m-1]))



print((num(75) + num(25)*(num(3)-1) + num(15)*(num(5)-1) + num(5)*(num(5)-1)*(num(3)-2)//2))
import math

dic = {}
N = int(eval(input()))
for i in range(2, N + 1):
    fact = []
    while i % 2 == 0:
        fact.append(2)
        i //= 2
    f = 3
    while f * f <= i:
        if i % f == 0:
            fact.append(f)
            i //= f
        else:
            f += 2
    if i != 1:
        fact.append(i)
    for j in fact:
        if j in dic:
            dic[j] += 1
        else:
            dic[j] = 1
cnt = 0
s1 = len([k for k, v in list(dic.items()) if v >= 2])
s2 = len([k for k, v in list(dic.items()) if v >= 4])
s3 = len([k for k, v in list(dic.items()) if v >= 14])
s4 = len([k for k, v in list(dic.items()) if v >= 24])
s5 = len([k for k, v in list(dic.items()) if v >= 74])
# 3*5*5
if s2 >= 2 and s1 >= 3:
    cnt += s2 * (s2 - 1) / 2 * (s1 - 2)
# 15*5
if s3 >= 1:
    cnt += s3 * (s2 - 1)
# 25*3
if s4 >= 1:
    cnt += s4 * (s1 - 1)
# 75
if s5 >= 1:
    cnt += s5
print((int(cnt)))

N = int(eval(input()))
e = [0] * (N + 1)
for i in range(2, N + 1):
    cur = i
    for j in range(2, i + 1):
        while cur % j == 0:
            e[j] += 1
            cur //= j


def num(m):
    return len(list([x for x in e if x >= m - 1]))


print(
    (
        num(75)
        + num(25) * (num(3) - 1)
        + num(15) * (num(5) - 1)
        + num(5) * (num(5) - 1) * (num(3) - 2) // 2
    )
)

-import math +N = int(eval(input())) +e = [0] * (N + 1) +for i in range(2, N + 1): +    cur = i +    for j in range(2, i + 1): +        while cur % j == 0: +            e[j] += 1 +            cur //= j -dic = {} -N = int(eval(input())) -for i in range(2, N + 1): -    fact = [] -    while i % 2 == 0: -        fact.append(2) -        i //= 2 -    f = 3 -    while f * f <= i: -        if i % f == 0: -            fact.append(f) -            i //= f -        else: -            f += 2 -    if i != 1: -        fact.append(i) -    for j in fact: -        if j in dic: -            dic[j] += 1 -        else: -            dic[j] = 1 -cnt = 0 -s1 = len([k for k, v in list(dic.items()) if v >= 2]) -s2 = len([k for k, v in list(dic.items()) if v >= 4]) -s3 = len([k for k, v in list(dic.items()) if v >= 14]) -s4 = len([k for k, v in list(dic.items()) if v >= 24]) -s5 = len([k for k, v in list(dic.items()) if v >= 74]) -# 3*5*5 -if s2 >= 2 and s1 >= 3: -    cnt += s2 * (s2 - 1) / 2 * (s1 - 2) -# 15*5 -if s3 >= 1: -    cnt += s3 * (s2 - 1) -# 25*3 -if s4 >= 1: -    cnt += s4 * (s1 - 1) -# 75 -if s5 >= 1: -    cnt += s5 -print((int(cnt))) + +def num(m): +    return len(list([x for x in e if x >= m - 1])) + + +print( +    ( +        num(75) +        + num(25) * (num(3) - 1) +        + num(15) * (num(5) - 1) +        + num(5) * (num(5) - 1) * (num(3) - 2) // 2 +    ) +)