def divisors(n)
  b = Array.new
  for i in 2..((n**0.5))
    while n % i == 0
      b.push(i)
      n = n / i
    end
  end
  b.push(n) if n != 1
  b
end
n = gets.to_i
hash = Hash.new(0)
cnt74 = 0
cnt24 = 0
cnt14 = 0
cnt4 = 0
cnt2 = 0
n.times do |i|
  divisors(i+1).each do |x|
    hash[x] += 1
    if hash[x] == 2
      cnt2 += 1
    elsif hash[x] == 4
      cnt4 += 1
    elsif hash[x] == 14
      cnt14 += 1
    elsif hash[x] == 24
      cnt24 += 1
    elsif hash[x] == 74
      cnt74 += 1
    end
  end
end
puts cnt4 * (cnt4-1) * (cnt2-2) / 2 + cnt14 * (cnt4-1) + cnt24 * (cnt2-1) + cnt74