require 'prime'

def factorial(number)
  (1..number).inject(1,:*)
end

n = gets.chomp.to_i

s = factorial(n).prime_division.map{|a| a[1]}

total = 0

# 75
count75 = s.select{|x| x >= 74}.size

total += count75

# 25, 3
count25 = s.select{|x| x >= 24}.size
count3 = s.select{|x| x >= 2}.size

total += count25 * (count3 - 1)

# 15, 5
count15 = s.select{|x| x >= 14}.size
count5 = s.select{|x| x >= 4}.size

total += count15 * (count5 - 1)

# 5, 5, 3
total += count5 * (count5 - 1) * (count3 - 2) / 2

puts total