#include<iostream>
#include<cmath>
using namespace std;
long long prime(long long n)
{ bool a[n/2];
for(int i = 0;i<n/2;i++)
a[i] = 1;
for(long long s = 2;s<=int(sqrt(n));s++)
{ if(a[s-1] == 0)
continue;
for(long long j = s*s;j<=n/2;j+=s)
{ a[j-1] = 0;
/* if(n == j)
return s;*/
}
}
for(long long i = 1;i<n/2;i++ )
{
if(a[i]==0)
continue;
if(n%(i+1) == 0)
return i+1;
}
return n;
}
int main()
{
long long n;
cin>>n;
long long a[n];
for(long long j=0;j<=n;j++)
a[j]=0;
for(long long i=2;i<=n;i++)
{ long long p = i;
long long k = prime(p);//Returns first prime factor of i
a[k]++;
p = p/k;
while(p!=1)
{
int s = prime(p);
a[s]++;
p = p/s;
}
}
long long s=1;
for(long long i = 0;i<=n;i++)
{
if(a[i]==0)
{
continue;
}
// s*=(1+2*a[i]);
s = (s *(1+2*a[i]))%1000007;
//cout<<i<<" "<<a[i]<<endl;
}
cout<<s%1000007<<endl;
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGNtYXRoPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKbG9uZyBsb25nIHByaW1lKGxvbmcgbG9uZyBuKQp7ICAgYm9vbCBhW24vMl07CiAgICBmb3IoaW50IGkgPSAwO2k8bi8yO2krKykKICAgIGFbaV0gPSAxOwogICAgZm9yKGxvbmcgbG9uZyBzID0gMjtzPD1pbnQoc3FydChuKSk7cysrKQogICAgeyAgIGlmKGFbcy0xXSA9PSAwKQogICAgICAgIGNvbnRpbnVlOwogICAgICAgIGZvcihsb25nIGxvbmcgaiA9IHMqcztqPD1uLzI7ais9cykKICAgICAgICB7ICBhW2otMV0gPSAwOwogICAgICAgICAgLyogIGlmKG4gPT0gaikKICAgICAgICAgICAgcmV0dXJuIHM7Ki8KICAgICAgICB9CiAgICB9CiAgICBmb3IobG9uZyBsb25nIGkgPSAxO2k8bi8yO2krKyApCiAgICB7CiAgICAgICAgaWYoYVtpXT09MCkKICAgICAgICBjb250aW51ZTsKICAgICAgICBpZihuJShpKzEpID09IDApCiAgICAgICAgcmV0dXJuIGkrMTsKICAgIH0KCiAgICByZXR1cm4gbjsKfQoKaW50IG1haW4oKQp7CiAgIGxvbmcgbG9uZyBuOwogICBjaW4+Pm47CiAgIGxvbmcgbG9uZyBhW25dOwogICBmb3IobG9uZyBsb25nIGo9MDtqPD1uO2orKykKICAgYVtqXT0wOwogICBmb3IobG9uZyBsb25nIGk9MjtpPD1uO2krKykKICAgeyAgIGxvbmcgbG9uZyBwID0gaTsKICAgICAgIGxvbmcgbG9uZyBrID0gcHJpbWUocCk7Ly9SZXR1cm5zIGZpcnN0IHByaW1lIGZhY3RvciBvZiBpCiAgICAgICBhW2tdKys7CiAgICAgICBwID0gcC9rOwogICAgICAgd2hpbGUocCE9MSkKICAgICAgIHsKICAgICAgICAgICBpbnQgcyA9IHByaW1lKHApOwogICAgICAgICAgIGFbc10rKzsKICAgICAgICAgICBwID0gcC9zOwogICAgICAgfQogICB9CgogICBsb25nIGxvbmcgcz0xOwogIGZvcihsb25nIGxvbmcgaSA9IDA7aTw9bjtpKyspCiAgewogICAgICBpZihhW2ldPT0wKQogICAgICB7CiAgICAgICAgICBjb250aW51ZTsKICAgICAgfQogICAgIC8vIHMqPSgxKzIqYVtpXSk7CiAgICAgcyA9IChzICooMSsyKmFbaV0pKSUxMDAwMDA3OwoKIC8vY291dDw8aTw8IiAiPDxhW2ldPDxlbmRsOwogIH0KICBjb3V0PDxzJTEwMDAwMDc8PGVuZGw7CiAgcmV0dXJuIDA7Cn0KCg==