def factorial(num)
  if num == 1
    num
  else
    num * factorial(num - 1)
  end
end

N = gets.chomp.to_i
n_f = factorial(N)

divs = []
for i in 1..n_f do
  divs << i if n_f % i == 0
end

count = 0
divs.each do |div|
  d_count = 0
  for i in 1..div do
    d_count += 1  if div % i == 0
  end
  count += 1 if d_count == 75
end

puts count