require 'prime'
io = STDIN
N=io.gets.to_i

PD= (1..N).inject(:*).prime_division.select{|k,v|v>=2}.to_h
def gt_cnt(n)
  PD.values.count{|i|i>=n.pred}
end
#75
#3*25
#3*5*5
#5*15
cnt=0
ar= [[75],[25,3],[5,5,3],[15,5]].map do |nums|
  dup=nums.size-nums.uniq.size
  nums.map.with_index do |n,i|
    (gt_cnt(n)-i)
  end.inject(:*)/(dup+1)
end
puts ar.inject(:+)
