require 'prime'
N = gets.to_i

hash = Hash.new(0)
(2..N).each do |i|
    Prime.prime_division(i).each do |pr, n|
        hash[pr] += n
    end
end
nums = hash.values.select{|n| n>=2 }
len = nums.length

divs = [1,3,5,15,25,75]

dp = Array.new(len+1){Array.new(76, 0)}
dp[0][1] = 1
len.times do |i|
    divs.each do |d1|
        divs.each do |d2|
            next if d1*d2 > 75
            if nums[i]+1 >= d2
                dp[i+1][d1*d2] += dp[i][d1]
            end
        end
    end
end

puts dp[len][75]