require 'prime'
pr = []
pr2 = Array.new(25, 0)
Prime.each(100) do |prime|
  pr.push(prime)
end
nu = gets.to_i
for i in 1..nu
  inst = i
  for j in 0..24
    while inst % pr[j] == 0
      pr2[j] += 1
      inst /= pr[j]
    end
    if inst == 1
      break
    end
  end
end

ans = 0
if pr2[0] >= 74
  ans += 1
end
inst1 = 0
inst2 = 0
inst3 = 0
inst4 = 0
for i in 0..24
  if pr2[i] >= 2
    inst1 += 1
  end
  if pr2[i] >= 24
    inst2 += 1
  end
  if pr2[i] >= 4
    inst3 += 1
  end
  if pr2[i] >= 14
    inst4 += 1
  end
end
ans += inst2 * (inst1 - 1)
ans += inst4 * (inst3 - 1)
ans += ((inst3 * (inst3 - 1)) / 2) * (inst1 - 2)
puts ans
