program arc067c
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int32):: i,j,n,num
    integer(int32), allocatable:: pf(:)
    integer(int64),parameter:: md=10**9+7
    integer(int64):: ans
    read*, n
    allocate(pf(n))
    pf(:) = 0
    pf(1) = 0
    do i=2,n
        num = i
        j=2
        do while(j*j <= num)
            do while (mod(num,j) == 0)
                num=num/j
                pf(j)=pf(j)+1
            end do
            j=j+1
        end do
        if (num /= 1) pf(num)=pf(num)+1
    end do

    pf(:)=pf(:)+1
    ans = 1
    do i=1,n
        ans = mod(ans*pf(i),md)
    end do
    print'(i0)', ans

end program arc067c