from collections import defaultdict





def cand_count(v, d):

    return len(tuple([x for x in list(d.values()) if x >= v]))





n = int(eval(input()))

d = defaultdict(int)



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

    b = i

    j = 2

    while j * j <= i:

        while b % j == 0:

            b //= j

            d[j] += 1

        j += 1

    if b > 1:

        d[b] += 1

    # print(i, j, d)

# print(d)



ans = 0

ans += cand_count(74, d)

ans += cand_count(24, d) * (cand_count(2, d) - 1)

ans += cand_count(14, d) * (cand_count(4, d) - 1)

ans += cand_count(4, d) * (cand_count(4, d) - 1) // 2 * (cand_count(2, d) - 2)

print(ans)

def num(v):

    return len(tuple([x for x in e if x >= v - 1]))





n = int(eval(input()))

e = [0] * (n + 1)



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

    b = i

    j = 2

    while j * j <= i:

        while b % j == 0:

            b //= j

            e[j] += 1

        j += 1

    if b > 1:

        e[b] += 1

e = tuple([x for x in e if x > 0])



ans = 0

ans += num(75)

ans += num(25) * (num(3) - 1)

ans += num(15) * (num(5) - 1)

ans += num(5) * (num(5) - 1) // 2 * (num(3) - 2)

print(ans)

from collections import defaultdict


def cand_count(v, d):
    return len(tuple([x for x in list(d.values()) if x >= v]))


n = int(eval(input()))
d = defaultdict(int)
for i in range(2, n + 1):
    b = i
    j = 2
    while j * j <= i:
        while b % j == 0:
            b //= j
            d[j] += 1
        j += 1
    if b > 1:
        d[b] += 1
    # print(i, j, d)
# print(d)
ans = 0
ans += cand_count(74, d)
ans += cand_count(24, d) * (cand_count(2, d) - 1)
ans += cand_count(14, d) * (cand_count(4, d) - 1)
ans += cand_count(4, d) * (cand_count(4, d) - 1) // 2 * (cand_count(2, d) - 2)
print(ans)

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


n = int(eval(input()))
e = [0] * (n + 1)
for i in range(2, n + 1):
    b = i
    j = 2
    while j * j <= i:
        while b % j == 0:
            b //= j
            e[j] += 1
        j += 1
    if b > 1:
        e[b] += 1
e = tuple([x for x in e if x > 0])
ans = 0
ans += num(75)
ans += num(25) * (num(3) - 1)
ans += num(15) * (num(5) - 1)
ans += num(5) * (num(5) - 1) // 2 * (num(3) - 2)
print(ans)

-from collections import defaultdict - - -def cand_count(v, d): -    return len(tuple([x for x in list(d.values()) if x >= v])) +def num(v): +    return len(tuple([x for x in e if x >= v - 1])) -d = defaultdict(int) +e = [0] * (n + 1) -            d[j] += 1 +            e[j] += 1 -        d[b] += 1 -    # print(i, j, d) -# print(d) +        e[b] += 1 +e = tuple([x for x in e if x > 0]) -ans += cand_count(74, d) -ans += cand_count(24, d) * (cand_count(2, d) - 1) -ans += cand_count(14, d) * (cand_count(4, d) - 1) -ans += cand_count(4, d) * (cand_count(4, d) - 1) // 2 * (cand_count(2, d) - 2) +ans += num(75) +ans += num(25) * (num(3) - 1) +ans += num(15) * (num(5) - 1) +ans += num(5) * (num(5) - 1) // 2 * (num(3) - 2)