local n = io.read("*n")
local t = {}
for i = 2, n do
  local sqi = math.floor(math.sqrt(i)) + 1
  local j, tmpi = 2, i
  while(j <= sqi) do
    if(tmpi % j == 0) then
      tmpi = tmpi / j
      if(t[j] == nil) then t[j] = 1 else t[j] = t[j] + 1 end
    else
      if(j == 2) then j = 3 else j = j + 2 end
    end
  end
  if(tmpi ~= 1) then
    if(t[tmpi] == nil) then t[tmpi] = 1 else t[tmpi] = t[tmpi] + 1 end
  end
end
local mod = 1000000007
local ret = 1
for k, v in pairs(t) do
  ret = (ret * (v + 1)) % mod
end
print(ret)
