require 'prime'

n = gets.to_i

h = Hash.new(0)
1.upto(n) {|i| i.prime_division.each {|k,v| h[k] += v}}

@h = h.values.sort_by {|e| -e} << 0
bi =->x{@h.bsearch_index{|e| e < x}}

p bi[74] + bi[24] * (bi[2]-1) + bi[14] * (bi[4]-1) + bi[4] * (bi[4]-1) * (bi[2]-2) / 2