using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;

namespace AtCoder.D
{
    public class Program
    {
        public static void Main() { var r = GetResult(); Debug.WriteLine(r); Console.Write(r); }

        private static object GetResult()
        {
            var N = ReadLong();
            var factorCount = new long[100];
            for (int i = 2; i <= N; i++)
            {
                foreach (var item in MyMath.GetPrimeFactors(i))
                {
                    factorCount[item]++;
                }
            }

            var count = 0L;

            //2,4,4 (75=3*5*5)
            {
                var f2 = factorCount.Count(x => x >= 2 && x < 4);
                var f4 = factorCount.Count(x => x >= 4);
                count += f2 * f4 * (f4 - 1) / 2;
                count += 3 * f4 * (f4 - 1) * (f4 - 2) / 6; // p^3*q^5*r^5, p^5*q^3*r^5, p^5*q^5*r^3 の3パターン
            }

            //2,24 (75=3*25)
            {
                var f2 = factorCount.Count(x => x >= 2 && x < 24);
                var f24 = factorCount.Count(x => x >= 24);
                count += f2 * f24;
                count += 2 * f24 * (f24 - 1) / 2; // p^3*q^25, p^25*q^3 の2パターン
            }

            //4,14 (75=5*15)
            {
                var f4 = factorCount.Count(x => x >= 4 && x < 14);
                var f14 = factorCount.Count(x => x >= 14);
                count += f4 * f14;
                count += 2 * f14 * (f14 - 1) / 2; // p^5*q^15, p^15*q^5 の2パターン
            }

            //74 (75=75)
            {
                count += factorCount.Count(x => x >= 74);
            }

            return count;
        }

        #region Console.Read

        public static string ReadText() { return Console.ReadLine(); }
        public static List<string> ReadTexts() { return Console.ReadLine().Split(' ').ToList(); }
        public static long ReadLong() { return long.Parse(Console.ReadLine()); }
        public static (long, long) Read2Longs() { var ls = ReadLongs(); return (ls[0], ls[1]); }
        public static (long, long, long) Read3Longs() { var ls = ReadLongs(); return (ls[0], ls[1], ls[2]); }
        public static (long, long, long, long) Read4Longs() { var ls = ReadLongs(); return (ls[0], ls[1], ls[2], ls[3]); }
        public static (long, long, long, long, long) Read5Longs() { var ls = ReadLongs(); return (ls[0], ls[1], ls[2], ls[3], ls[4]); }
        public static List<long> ReadLongs() { return Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); }

        #endregion
    }
    public static class MyMath
    {
        /// <summary>
        /// 最大公約数を求める
        /// </summary>
        public static long Gcd(long a, long b)
        {
            // 引数を入替えて自分を呼び出す
            if (a < b) return Gcd(b, a);

            while (b != 0)
            {
                var remainder = a % b;
                a = b;
                b = remainder;
            }

            return a;
        }
        /// <summary>
        /// 最小公倍数を求める
        /// </summary>
        public static long Lcm(long a, long b)
        {
            return a / Gcd(a, b) * b;
        }
        /// <summary>
        /// 素数かどうかを判定する
        /// </summary>
        public static bool IsPrime(long n)
        {
            if (n == 0 || n == 1) return false;

            for (long i = 2; i * i <= n; i++)
            {
                if (n % i == 0) return false;
            }

            return true;
        }
        /// <summary>
        /// 素因数をすべて求める
        /// </summary>
        public static IEnumerable<long> GetPrimeFactors(long n)
        {
            for (long a = 2; a * a <= n; ++a)
            {
                if (n % a != 0) continue;

                // 割れる限り割り続ける
                while (n % a == 0)
                {
                    // ★TODO：数までカウントしたい場合はここで返す
                    yield return a;
                    n /= a;
                }

                // ★TODO：重複を許さない場合はここで返す
                //yield return a;

            }

            // 最後に残った数について
            if (n != 1) yield return n;
        }
        /// <summary>
        /// 約数をすべて求める
        /// 注意：並び替えるのを忘れずに！！！
        /// </summary>
        public static IEnumerable<long> GetDivisors(long n)
        {
            var sqrt = Math.Sqrt(n);
            for (long d = 1; d < sqrt; d++)
            {
                if (n % d == 0)
                {
                    yield return d;
                    yield return n / d;
                }
            }

            // 平方根が整数の場合は約数となる
            if (sqrt == (long)sqrt)
            {
                yield return (long)sqrt;
            }
        }
    }
}


Measured memory_bytes: 27860