import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt()
  val F = List(N/2+N/4+N/8+N/16+N/32+N/64, N/3+N/9+N/27+N/81, N/5+N/25, N/7+N/49
  ) ++ List(11,13,17,19,23,29,31,37,41,43,47).map(N/_)
  val f=Map(
     3 -> F.count(_ >=  2),  5 -> F.count(_ >=  4),
    15 -> F.count(_ >= 14), 25 -> F.count(_ >= 24),
    75 -> F.count(_ >= 74)
  )
  println( f(75) + f(25)*(f(3)-1) + f(15)*(f(5)-1) + f(5)*(f(5)-1)/2*(f(3)-2))
}
