require "prime"

n = gets.to_i
x = 1.upto(n).map.inject(:*).prime_division

w = [[4,4,2],[4,2,4],[2,4,4],[14,4],[4,14],[24,2],[2,24],[74]]
ans = 0
w.each{|e|
  t = [*0...x.size].combination(e.size).to_a
  t.each{|y|
    if e.size.times.map{|i|x[y[i]][1] >= e[i]}.all?
      ans += 1
    end
  }
}

p ans
