require 'prime'

N = gets.strip.to_i

H = Hash.new(0)
(1..N).each do |i|
  i.prime_division.each do |n, f|
    H[n] += f 
  end
end
  
f = (0..74).map{|i| H.values.count{|j| j >= i}}
ans = f[4] * (f[4] - 1) / 2 * (f[2] - 2)
ans += f[14] * (f[4] - 1)
ans += f[24] * (f[2] - 1)
ans += f[74]

puts ans