local n = tonumber(io.read())
e = {}
for i=1,n+1,1 do
  e[i]=0
end
for i=2,n,1 do
    local cur = i
    for j=2,i,1 do
        while cur%j==0 do
            e[j+1] = e[j+1]+1
            cur = cur //j
        end
    end
end
res = 0
for i=1,n,1 do
    for j=1,n,1 do
        for k=1,n,1 do
            if e[i]>=4 and e[j]>=4 and e[k]>=2 and i<j and i~=k and j~=k then
                res = res+1
            end
        end
    end
end
for i=1,n,1 do
    for j=1,n,1 do
        if e[i]>=14 and e[j]>=4 and i~=j then
            res = res+1
        end
        if e[i]>=24 and e[j]>=2 and i~=j then
            res = res+1
        end
    end
end
for i=1,n,1 do
    if e[i]>=74 then
        res = res+1
    end
end
print(res)