Language: C++

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
        Console.SetOut(sw);
        Solve();
        Console.Out.Flush();
    }
    static void Solve()
    {
        var N = sc.ReadInt();
        var pf = new int[100];
        for (int i = 2; i <= N; i++)
        {
            foreach (var p in PrimeFactors(i))
            {
                pf[p.Item1] += p.Item2;
            }
        }
        var ans = 0;
        // 75=75*1
        ans += pf.Count(p => p >= 74);
        // 75=25*3
        ans += Math.Max(0, pf.Count(p => p >= 24) * (pf.Count(p => p >= 2) - 1));
        // 75=15*5
        ans += Math.Max(0, pf.Count(p => p >= 14) * (pf.Count(p => p >= 4) - 1));
        // 75=5*5*3
        var f4 = pf.Count(p => p >= 4);
        ans += Math.Max(0, f4 * (f4 - 1) / 2) * (pf.Count(p => p >= 2) - 2);
        Console.WriteLine(ans);
    }

    static List<Tuple<long, int>> PrimeFactors(long n)
    {
        var res = new List<Tuple<long, int>>();
        var count = 0;
        for (long x = 2; x * x <= n; x++)
        {
            count = 0;
            while (n % x == 0)
            {
                n /= x;
                count++;
            }
            if (count > 0) res.Add(Tuple.Create(x, count));
        }
        if (n != 1) res.Add(Tuple.Create(n, 1));
        return res;
    }
    static Scanner sc = new Scanner();
}
class Scanner
{
    string[] S = new string[0];
    int Index = 0;
    char[] Separators = new char[] { ' ' };

    public string Next()
    {
        if (this.Index < this.S.Length) return this.S[this.Index++];
        var line = "";
        while (line == "") line = Console.ReadLine();
        this.S = line.Split(this.Separators, StringSplitOptions.RemoveEmptyEntries);
        if (this.S.Length == 0) return this.Next();
        this.Index = 0;
        return this.S[this.Index++];
    }
    public string ReadStr()
    {
        return this.Next();
    }
    public char ReadChar()
    {
        return this.Next()[0];
    }
    public int ReadInt()
    {
        return int.Parse(this.Next());
    }
    public uint ReadUInt()
    {
        return uint.Parse(this.Next());
    }
    public long ReadLong()
    {
        return long.Parse(this.Next());
    }
    public double ReadDouble()
    {
        return double.Parse(this.Next());
    }
    public Tuple<int, int> ReadTup(int add = 0)
    {
        return Tuple.Create(this.ReadInt() + add, this.ReadInt() + add);
    }
    public Tuple<long, long> ReadTupLong(int add = 0)
    {
        return Tuple.Create(this.ReadLong() + add, this.ReadLong() + add);
    }
    public Tuple<int, int, int> ReadTup3(int add = 0)
    {
        return Tuple.Create(this.ReadInt() + add, this.ReadInt() + add, this.ReadInt() + add);
    }
    public Tuple<int, int, int, int> ReadTup4(int add = 0)
    {
        return Tuple.Create(this.ReadInt() + add, this.ReadInt() + add, this.ReadInt() + add, this.ReadInt() + add);
    }
    public int[] ReadIntArray(int n)
    {
        var array = new int[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadInt();
        }
        return array;
    }
    public long[] ReadLongArray(int n)
    {
        var array = new long[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadLong();
        }
        return array;
    }
    public double[] ReadDoubleArray(int n)
    {
        var array = new double[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadDouble();
        }
        return array;
    }
    public char[] ReadCharArray(int n)
    {
        var array = new char[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadChar();
        }
        return array;
    }
    public string[] ReadStrArray(int n)
    {
        var array = new string[n];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = this.ReadStr();
        }
        return array;
    }
    public Tuple<long, long>[] ReadTupLongArray(int n, int add = 0)
    {
        var array = new Tuple<long, long>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTupLong(add);
        }
        return array;
    }
    public Tuple<int, int>[] ReadTupArray(int n, int add = 0)
    {
        var array = new Tuple<int, int>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTup(add);
        }
        return array;
    }
    public Tuple<int, int, int>[] ReadTup3Array(int n, int add = 0)
    {
        var array = new Tuple<int, int, int>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTup3(add);
        }
        return array;
    }
    public Tuple<int, int, int, int>[] ReadTup4Array(int n, int add = 0)
    {
        var array = new Tuple<int, int, int, int>[n];
        for (int i = 0; i < n; i++)
        {
            array[i] = this.ReadTup4(add);
        }
        return array;
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.IO;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Linq;
      |       ^~~~~~
a.cc:8:22: error: 'string' has not been declared
    8 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:8:31: error: expected ',' or '...' before 'args'
    8 |     static void Main(string[] args)
      |                               ^~~~
a.cc:39:12: error: 'List' does not name a type
   39 |     static List<Tuple<long, int>> PrimeFactors(long n)
      |            ^~~~
a.cc:56:12: error: 'Scanner' does not name a type
   56 |     static Scanner sc = new Scanner();
      |            ^~~~~~~
a.cc:57:2: error: expected ';' after class definition
   57 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:10:9: error: 'var' was not declared in this scope
   10 |         var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
      |         ^~~
a.cc:11:9: error: 'Console' was not declared in this scope
   11 |         Console.SetOut(sw);
      |         ^~~~~~~
a.cc:11:24: error: 'sw' was not declared in this scope
   11 |         Console.SetOut(sw);
      |                        ^~
a.cc: In static member function 'static void Program::Solve()':
a.cc:17:9: error: 'var' was not declared in this scope
   17 |         var N = sc.ReadInt();
      |         ^~~
a.cc:18:13: error: expected ';' before 'pf'
   18 |         var pf = new int[100];
      |             ^~
a.cc:19:30: error: 'N' was not declared in this scope
   19 |         for (int i = 2; i <= N; i++)
      |                              ^
a.cc:21:26: error: expected ')' before 'p'
   21 |             foreach (var p in PrimeFactors(i))
      |                          ^
a.cc:21:21: note: to match this '('
   21 |             foreach (var p in PrimeFactors(i))
      |                     ^
a.cc:21:13: error: 'foreach' was not declared in this scope
   21 |             foreach (var p in PrimeFactors(i))
      |             ^~~~~~~
a.cc:26:13: error: expected ';' before 'ans'
   26 |         var ans = 0;
      |             ^~~
a.cc:28:9: error: 'ans' was not declared in this scope
   28 |         ans += pf.Count(p => p >= 74);
      |         ^~~
a.cc:28:16: error: 'pf' was not declared in this scope
   28 |         ans += pf.Count(p => p >= 74);
      |                ^~
a.cc:28:25: error: 'p' was not declared in this scope
   28 |         ans += pf.Count(p => p >= 74);
      |                         ^
a.cc:28:28: error: expected primary-expression before '>' token
   28 |         ans += pf.Count(p => p >= 74);
      |                            ^
a.cc:30:16: error: 'Math' was not declared in this scope
   30 |         ans += Math.Max(0, pf.Count(p => p >= 24) * (pf.Count(p => p >= 2) - 1));
      |                ^~~~
a.cc:30:40: error: expected primary-expression before '>' token
   30 |         ans += Math.Max(0, pf.Count(p => p >= 24) * (pf.Count(p => p >= 2) - 1));
      |                                        ^
a.cc:30:66: error: expected primary-expression before '>' token
   30 |         ans += Math.Max(0, pf.Count(p => p >= 24) * (pf.Count(p => p >= 2) - 1));
      |                                                                  ^
a.cc:32:40: error: expected primary-expression before '>' token
   32 |         ans += Math.Max(0, pf.Count(p => p >= 14) * (pf.Count(p => p >= 4) - 1));
      |                                        ^
a.cc:32:66: error: expected primary-expression before '>' token
   32 |         ans += Math.Max(0, pf.Count(p => p >= 14) * (pf.Count(p => p >= 4) - 1));
      |                                                                  ^
a.cc:34:13: error: expected ';' before 'f4'
   34 |         var f4 = pf.Count(p => p >= 4);
      |             ^~
a.cc:35:28: error: 'f4' was not declared in this scope
   35 |         ans += Math.Max(0, f4 * (f4 - 1) / 2) * (pf.Count(p => p >= 2) - 2);
      |                            ^~
a.cc:35:62: error: expected primary-expression before '>' token
   35 |         ans += Math.Max(0, f4 * (f4 - 1) / 2) * (pf.Count(p => p >= 2) - 2);
      |                                                              ^
a.cc:36:9: error: 'Console' was not declared in this scope
   36 |         Console.WriteLine(ans);
      |         ^~~~~~~
a.cc: At global scope:
a.cc:60:5: error: 'string' does not name a type
   60 |     string[] S = new string[0];
      |     ^~~~~~
a.cc:62:9: error: expected unqualified-id before '[' token
   62 |     char[] Separators = new char[] { ' ' };
      |         ^
a.cc:64:11: error: expected ':' before 'string'
   64 |     public string Next()
      |           ^~~~~~~
      |           :
a.cc:64:12: error: 'string' does not name a type
   64 |     public string Next()
      |            ^~~~~~
a.cc:74:11: error: expected ':' before 'string'
   74 |     public string ReadStr()
      |           ^~~~~~~
      |           :
a.cc:74:12: error: 'string' does not name a type
   74 |     public string ReadStr()
      |            ^~~~~~
a.cc:78:11: error: expected ':' before 'char'
   78 |     public char ReadChar()
      |           ^~~~~
      |           :
a.cc:82:11: error: expected ':' before 'int'
   82 |     public int ReadInt()
      |           ^~~~
      |           :
a.cc:86:11: error: expected ':' before 'uint'
   86 |     public uint ReadUInt()
      |           ^~~~~
      |           :
a.cc:86:12: error: 'uint' does not name a type; did you mean 'int'?
   86 |     public uint ReadUInt()
      |            ^~~~
      |            int
a.cc:90:11: error: expected ':' before 'long'
   90 |     public long ReadLong()
      |           ^~~~~
      |           :
a.cc:94:11: error: expected ':' before 'double'
   94 |     public double ReadDouble()
      |           ^~~~~~~
      |           :
a.cc:98:11: error: expected ':' before 'Tuple'
   98 |     public Tuple<int, int> ReadTup(int add = 0)
      |           ^~~~~~
      |           :
a.cc:98:12: error: 'Tuple' does not name a type
   98 |     public Tuple<int, int> ReadTup(int add = 0)
      |            ^~~~~
a.cc:102:11: error: expected ':' before 'Tuple'
  102 |     public Tuple<long, long> ReadTupLong(int add = 0)
      |           ^~~~~~
      |           :
a.cc:102:12: error: 'Tuple' does not name a type
  102 |     public Tuple<long, long> ReadTupLong(int add = 0)
      |            ^~~~~
a.cc:106:11: error: expected ':' before 'Tuple'
  106 |     public Tuple<int, int, int> ReadTup3(int add = 0)
      |           ^~~~~~
      |           :
a.cc:106:12: error: 'Tuple' does not name a type
  106 |     public Tuple<int, int, int> ReadTup3(int add = 0)
      |            ^~~~~
a.cc:110:11: error: expected ':' before 'Tuple'
  110 |     public Tuple<int, int, int, int> ReadTup4(int add = 0)
      |           ^~~~~~
      |           :
a.cc:110:12: error: 'Tuple' does not name a type
  110 |     public Tuple<int, int, int, int> ReadTup4(int add = 0)
      |            ^~~~~
a.cc:114:11: error: expected ':' before 'int'
  114 |     public int[] ReadIntArray(int n)
      |           ^~~~
      |           :
a.cc:114:15: error: expected unqualified-id before '[' token
  114 |     public int[] ReadIntArray(int n)
      |               ^
a.cc:123:11: error: expected ':' before 'long'
  123 |     public long[] ReadLongArray(int n)
      |           ^~~~~
      |           :
a.cc:123:16: error: expected unqualified-id before '[' token
  123 |     public long[] ReadLongArray(int n)
      |                ^
a.cc:132:11: error: expected ':' before 'double'
  132 |     public double[] ReadDoubleArray(int n)
      |           ^~~~~~~
      |           :
a.cc:132:18: error: expected unqualified-id before '[' token
  132 |     public double[] ReadDoubleArray(int n)
      |                  ^
a.cc:141:11: error: expected ':' before 'char'
  141 |     public char[] ReadCharArray(int n)
      |           ^~~~~
      |           :
a.cc:141:16: error: expected unqualified-id before '[' token
  141 |     public char[] ReadCharArray(int n)
      |                ^
a.cc:150:11: error: expected ':' before 'string'
  150 |     public string[] ReadStrArray(int n)
      |           ^~~~~~~
      |           :
a.cc:150:12: error: 'string' does not name a type
  150 |     public string[] ReadStrArray(int n)
      |            ^~~~~~
a.cc:159:11: error: expected ':' before 'Tuple'
  159 |     public Tuple<long, long>[] ReadTupLongArray(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:159:12: error: 'Tuple' does not name a type
  159 |     public Tuple<long, long>[] ReadTupLongArray(int n, int add = 0)
      |            ^~~~~
a.cc:168:11: error: expected ':' before 'Tuple'
  168 |     public Tuple<int, int>[] ReadTupArray(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:168:12: error: 'Tuple' does not name a type
  168 |     public Tuple<int, int>[] ReadTupArray(int n, int add = 0)
      |            ^~~~~
a.cc:177:11: error: expected ':' before 'Tuple'
  177 |     public Tuple<int, int, int>[] ReadTup3Array(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:177:12: error: 'Tuple' does not name a type
  177 |     public Tuple<int, int, int>[] ReadTup3Array(int n, int add = 0)
      |            ^~~~~
a.cc:186:11: error: expected ':' before 'Tuple'
  186 |     public Tuple<int, int, int, int>[] ReadTup4Array(int n, int add = 0)
      |           ^~~~~~
      |           :
a.cc:186:12: error: 'Tuple' does not name a type
  186 |     public Tuple<int, int, int, int>[] ReadTup4Array(int n, int add = 0)
      |            ^~~~~
a.cc:195:2: error: expected ';' after class definition
  195 | }
      |  ^
      |  ;
a.cc: In member function 'char Scanner::ReadChar()':
a.cc:80:21: error: request for member 'Next' in '(Scanner*)this', which is of pointer type 'Scanner*' (maybe you meant t