N = gets.to_i

require 'prime'

@ps = (1 .. N).inject(:*).prime_division.map(&:last)
def f(x); @ps.count{|p| p >= x - 1}; end
def c(a, b); (a - b + 1 .. a).inject(:*) / (1 .. b).inject(:*); end
puts f(75) + f(25)*(f(3) - 1) + f(15)*(f(5) - 1) + c(f(5), 2)*(f(3) - 2)