require 'prime'
n = gets.to_i
array = Array.new(100,0)
ans = 0
2.upto(n) do |i|
  factoring = Prime.prime_division(i)
  factoring.map { |a|
    array[a[0]] += a[1]
    }
end

over_74 = array.count {|num| num >=74}
over_24 = array.count {|num| num >=24}
over_14 = array.count {|num| num >=14}
over_4 = array.count {|num| num >=4}
over_2 = array.count {|num| num >=2}

ans = over_74 + over_24*(over_2-1)  + over_14*(over_4-1) + (over_2-2)*over_4*(over_4-1)/2
puts ans
