using System;
using System.Collections.Generic;
using System.Linq;
using CompLib.Collections;
using CompLib.Util;

public class Program
{

    public void Solve()
    {
        var sc = new Scanner();
        int N = sc.NextInt();

        // N!の素因数分解

        var map = new HashMap<int, int>();
        for (int i = 1; i <= N; i++)
        {
            int cp = i;


            for (int d = 2; d * d <= cp; d++)
            {
                if (cp % d == 0)
                {
                    int cnt = 0;
                    while (cp % d == 0)
                    {
                        cp /= d;
                        cnt++;
                    }
                    map[d] += cnt;
                }
            }

            if (cp != 1) map[cp]++;
        }

        // 3*5*5

        // 15 * 5

        // 3 * 25

        // 75

        int three = 0;
        int five = 0;
        int fifteen = 0;
        int twentyfive = 0;
        int seventyfive = 0;

        foreach (var p in map)
        {
            if (p.Value >= 2) three++;
            if (p.Value >= 4) five++;
            if (p.Value >= 14) fifteen++;
            if (p.Value >= 24) twentyfive++;
            if (p.Value >= 74) seventyfive++;
        }
        long ans = 0;
        // 75
        ans += seventyfive;
        // 3*25
        ans += twentyfive * (three - 1);
        // 5 * 15
        ans += fifteen * (five - 1);
        // 3*5*5
        ans += five * (five - 1) * (three - 2) / 2;
        Console.WriteLine(ans);
    }

    public static void Main(string[] args) => new Program().Solve();
}


namespace CompLib.Collections
{
    using System.Collections.Generic;
    public class HashMap<TKey, TValue> : Dictionary<TKey, TValue>
    {
        public new TValue this[TKey key]
        {
            get
            {
                TValue o;
                return TryGetValue(key, out o) ? o : default(TValue);
            }
            set { base[key] = value; }
        }
    }
}

namespace CompLib.Util
{
    using System;
    using System.Linq;

    class Scanner
    {
        private string[] _line;
        private int _index;
        private const char Separator = ' ';

        public Scanner()
        {
            _line = new string[0];
            _index = 0;
        }

        public string Next()
        {
            while (_index >= _line.Length)
            {
                _line = Console.ReadLine().Split(Separator);
                _index = 0;
            }

            return _line[_index++];
        }

        public int NextInt() => int.Parse(Next());
        public long NextLong() => long.Parse(Next());
        public double NextDouble() => double.Parse(Next());
        public decimal NextDecimal() => decimal.Parse(Next());
        public char NextChar() => Next()[0];
        public char[] NextCharArray() => Next().ToCharArray();

        public string[] Array()
        {
            _line = Console.ReadLine().Split(Separator);
            _index = _line.Length;
            return _line;
        }

        public int[] IntArray() => Array().Select(int.Parse).ToArray();
        public long[] LongArray() => Array().Select(long.Parse).ToArray();
        public double[] DoubleArray() => Array().Select(double.Parse).ToArray();
        public decimal[] DecimalArray() => Array().Select(decimal.Parse).ToArray();
    }
}


Measured memory_bytes: 13268