integer N,tmp
integer(8)ans
integer NumOfPrime(168),primenumbers(168)
read*,N
NumOfPrime=0
call getprime(1000,primenumbers)
do i=2,N
  tmp=i
  do j=1,168
    do while(mod(tmp,primenumbers(j))==0)
      NumOfPrime(j)=NumOfPrime(j)+1
      tmp=tmp/primenumbers(j)
    end do
  end do
end do
ans=1
do i=1,168
  ans=mod(ans*(NumOfPrime(i)+1),10**9+7)
end do
print"(i0)",ans
contains
subroutine getprime(N,array)
  integer N
  integer,dimension(:)::array
  integer ind
  logical pr
  array(1)=2;ind=1
  do i=3,N
    pr=.true.
    do j=1,ind
      if(mod(i,array(j))==0)then
        pr=.false.
        exit
      endif
    end do
    if(pr)then
      array(ind+1)=i;ind=ind+1
    endif
  end do
end subroutine
end