local n=io.read("n")

local pable={}
for i=1,n do
    local x=i
    for j=2,math.sqrt(x) do
        if x%j==0 then
            local counter=0
            while x%j==0 do
                x=x//j
                counter=counter+1
            end
            pable[j]=(pable[j] or 0)+counter
        end
    end
    if x>1 then
        pable[x]=(pable[x] or 0)+1
    end
end

local div=1
for k,v in pairs(pable) do
    div=div*(v+1)%1000000007
end
print(div)