var GET = (function(){
  function f(s){return new g(s);}
  function g(s){this._s=s.trim().split("\n");this._y=0;}
  g.prototype.a = function(f){
    var s = this._s, y = this._y, r;
    if(typeof s[y] === "string")s[y]=s[y].split(" ").reverse();
    r = s[y].pop();
    if(!s[y].length)this._y++;
    return f?r:+r;
  }
  g.prototype.l = function(f){
    var s=this._s[this._y++].split(" ");return f?s:s.map(a=>+a);
  }
  g.prototype.m = function(n,f){
    var r=this._s.slice(this._y,this._y+=n).map(a=>a.split(" "));
    return f?r:r.map(a=>a.map(a=>+a));
  }
  g.prototype.r = function(n,f){
    var r = this._s.slice(this._y,this._y+=n);
    return f?r:r.map(a=>+a);
  }
  return f;
})();
var o=GET(require("fs").readFileSync("/dev/stdin","utf8"));

console.log(main());
function main(){
  var n = o.a();
  var x = Array(n+1).fill(1);
  for(var i = 2; i <= n; i++){
    var t = i, j = 2;
    while(t > 1){
      if(t % j === 0){x[j]++; t /= j;}
      else j++;
    }
  }
  var a = Array(26).fill(0).map(a=>{return {}}), ans = 0;
  for(i = 2; i <= n; i++){
    if(x[i] >= 75)ans++;
    if(x[i] >= 25)a[25][i] = 1;
    if(x[i] >= 15)a[15][i] = 1;
    if(x[i] >= 5)a[5][i] = 1;
    if(x[i] >= 3)a[3][i] = 1;
  }
  for(i in a[3]){
    var t = Object.keys(a[5]).length;
    if(a[5][i])t--;
    ans += t * (t-1) / 2;
    var t = Object.keys(a[25]).length;
    if(a[25][i])t--;
    ans += t ;
  }
  for(i in a[5]){
    var t = Object.keys(a[15]).length;
    if(a[15][i])t--;
    ans += t;
  }
  return ans;
}