#!/usr/bin/env ruby
require 'prime'

n = STDIN.readline.strip.to_i

def fact(n)
  (1..n).inject(:*) || 1
end

f = fact(n)
factors = Prime.prime_division(f)
# puts "#{factors}"
c75 = factors.find_all{|f| f[1] >= 74}.map{|f| f[0]}
c25 = factors.find_all{|f| f[1] >= 24}.map{|f| f[0]}
c15 = factors.find_all{|f| f[1] >= 14}.map{|f| f[0]}
c5 = factors.find_all{|f| f[1] >= 4}.map{|f| f[0]}
c3 = factors.find_all{|f| f[1] >= 2}.map{|f| f[0]}
# puts "c5:#{c5}, size: #{c5.size}"
# puts "c3:#{c3}, size: #{c3.size}"
# c5C2 = |c5| * |c5-1| / 2
c75 = c75.size
c25_3 = c25.size * (c3.size - 1)
c15_5 = c15.size * (c5.size - 1)
c5_5_3 = c5.size * (c5.size - 1) / 2 * (c3.size - 2)
ans = c75 + c25_3 + c15_5 + c5_5_3 
puts ans
