import Data.List

main = interact $ show . sol . read

sol n = d $ product [1..n]

d 1 = 1
d n = foldr1 prod . fmap (succ . length) . group $ primeFactors n

prod a b = a*b `mod` md

md = 10^9+7 :: Int

-- | Prime numbers
primes :: Integral a => [a]
primes = 2 : filter ((==1) . length . primeFactors) [3,5..]

primeFactors :: Integral a => a -> [a]
primeFactors 1 = []
primeFactors n = factor n primes

factor :: Integral a => a -> [a] -> [a]
factor n (p:ps) 
  | p*p > n        = [n]
  | n `mod` p == 0 = p:factor (n `div` p) (p:ps)
  | otherwise      = factor n ps 
