void main()
{
    long n = rdElem;

    long[] factor = new long[n+1];
    foreach (i; 2 .. n+1)
    {
        long num = i;
        for (long j = 2; j * j <= n; ++j)
        {
            while (num % j == 0)
            {
                num /= j;
                ++factor[j];
            }
        }
        if (num > 1) ++factor[num];
    }

    long[] list = [2, 4, 14, 24, 74];
    long[long] cnt;
    foreach (x; list) cnt[x] = 0;
    foreach (x; factor)
    {
        foreach (y; list)
        {
            if (x >= y) ++cnt[y];
        }
    }

    long result;
    result += cnt[74];
    result += cnt[24] * (cnt[2] - 1);
    result += cnt[14] * (cnt[4] - 1);
    result += ((cnt[4] * (cnt[4] - 1)) >> 1) * (cnt[2] - 2);

    result.writeln;
}

enum long mod = 10^^9 + 7;
enum long inf = 1L << 60;
enum double eps = 1.0e-9;

T rdElem(T = long)()
if (!is(T == struct))
{
    return readln.chomp.to!T;
}

alias rdStr = rdElem!string;
alias rdDchar = rdElem!(dchar[]);

T rdElem(T)()
if (is(T == struct))
{
    T result;
    string[] input = rdRow!string;
    assert(T.tupleof.length == input.length);
    foreach (i, ref x; result.tupleof)
    {
        x = input[i].to!(typeof(x));
    }
    return result;
}

T[] rdRow(T = long)()
{
    return readln.split.to!(T[]);
}

T[] rdCol(T = long)(long col)
{
    return iota(col).map!(x => rdElem!T).array;
}

T[][] rdMat(T = long)(long col)
{
    return iota(col).map!(x => rdRow!T).array;
}

void rdVals(T...)(ref T data)
{
    string[] input = rdRow!string;
    assert(data.length == input.length);
    foreach (i, ref x; data)
    {
        x = input[i].to!(typeof(x));
    }
}

void wrMat(T = long)(T[][] mat)
{
    foreach (row; mat)
    {
        foreach (j, compo; row)
        {
            compo.write;
            if (j == row.length - 1) writeln;
            else " ".write;
        }
    }
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.mathspecial;
import std.traits;
import std.container;
import std.functional;
import std.typecons;
import std.ascii;
import std.uni;
import core.bitop;