program atcoder
    implicit none
    integer(8) n,ans,i,j,k
    integer(8) x(101)
    read*,n
    x = 0
    do i=2,n
      ans = i
      do j = 2,i
        do while(mod(ans,j)==0)
          ans = ans/j
          x(j) = x(j) + 1
        enddo
      enddo
    enddo
    ans = 0
    do i = 2,n
      if(x(i)>=74)ans=ans+1
      do j = 2,n
        if(i==j)cycle
        if(x(i)>=4.and.x(j)>=14)ans=ans+1
        if(x(i)>=2.and.x(j)>=24)ans=ans+1
        do k = j+1,n
          if(i==k)cycle
          if(x(i)>=2 .and. x(j)>=4 .and. x(k)>=4)ans=ans+1
        enddo
      enddo
    enddo
    write(*,'(I0)')ans
!----------------------functions--------------------------
contains

end program atcoder