require 'prime'

N = gets.to_i

D = (1..N).inject(:*).prime_division.map(&:last)

ans = 0

def dcnt(num)
  D.count { |k| k + 1 >= num }
end

ans += dcnt(75)
ans += dcnt(25) * (dcnt(3) - 1)
ans += dcnt(15) * (dcnt(5) - 1)
ans += (dcnt(5) * (dcnt(5) - 1) * (dcnt(3) - 2)) / 2

puts ans
